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.42.0 lib/eac_cli/parser/alternative/option_argument.rb
eac_cli-0.40.1 lib/eac_cli/parser/alternative/option_argument.rb
eac_cli-0.40.0 lib/eac_cli/parser/alternative/option_argument.rb
eac_cli-0.39.0 lib/eac_cli/parser/alternative/option_argument.rb
eac_cli-0.38.1 lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.82.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.81.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.80.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.79.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.78.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.77.1 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.77.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_cli-0.38.0 lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.76.1 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.76.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.75.2 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_cli-0.37.0 lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.75.1 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.75.0 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb
eac_tools-0.74.1 sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb