Sha256: c13c3961d586db0960993b65673187760211a466c410b161b5964f843f76c1d1

Contents?: true

Size: 662 Bytes

Versions: 246

Compression:

Stored size: 662 Bytes

Contents

# frozen_string_literal: true

module EacCli
  class Parser
    class Alternative
      module OptionArgument
        private

        attr_accessor :argument_option

        def argument_option_collect_argv(option)
          self.argument_option = option
          self.phase = PHASE_OPTION_ARGUMENT
        end

        def option_argument_collect(option, value)
          collector.collect(option, value)
          self.argument_option = nil
          self.phase = PHASE_ANY
          option
        end

        def option_argument_collect_argv_value
          option_argument_collect(argument_option, argv_enum.peek)
        end
      end
    end
  end
end

Version data entries

246 entries across 246 versions & 4 rubygems

Version Path
eac_cli-0.32.0 lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.63.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.62.1 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_cli-0.31.0 lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.62.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.61.1 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.61.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.60.3 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.60.2 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.60.1 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.60.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.59.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.58.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.57.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.56.1 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.56.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.55.7 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.55.6 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.55.5 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.55.4 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb