Sha256: 6398bf88216742a9dc9800cf9f05eb5185de0fb1897dc2e8730fe7f051011b8e

Contents?: true

Size: 273 Bytes

Versions: 2

Compression:

Stored size: 273 Bytes

Contents

# frozen_string_literal: true

module Farseer
  class Opt
    include MapFactory

    def initialize(parser)
      @parser = parser
      freeze
    end

    def parse(input)
      @parser
        .parse(input)
        .map_none { Result.new('', input) }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
farseer-0.9.0 lib/farseer/opt.rb
farseer-0.8.0 lib/farseer/opt.rb