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_tools-0.55.3 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.55.2 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_cli-0.30.1 lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.55.1 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.55.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.54.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.53.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.52.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.51.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.50.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.49.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.48.1 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.48.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.47.2 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.47.1 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.47.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.46.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.45.2 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_cli-0.30.0 lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.45.1 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb