Sha256: af096259b251cab5a9834df8422e7280c53867873c13db340f27c1f401fc33f2

Contents?: true

Size: 468 Bytes

Versions: 14

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module EacCli
  module Runner
    class Context
      attr_reader :argv, :parent, :program_name

      def initialize(*context_args)
        options = context_args.extract_options!
        @argv = (context_args[0] || options.delete(:argv) || ARGV).dup.freeze
        @parent = context_args[1] || options.delete(:parent)
        @program_name = options.delete(:program_name)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
avm-tools-0.70.2 vendor/eac_cli/lib/eac_cli/runner/context.rb
ehbrs-tools-0.15.0 vendor/eac_cli/lib/eac_cli/runner/context.rb
ehbrs-tools-0.14.1 vendor/eac_cli/lib/eac_cli/runner/context.rb
avm-tools-0.70.1 vendor/eac_cli/lib/eac_cli/runner/context.rb
avm-tools-0.70.0 vendor/eac_cli/lib/eac_cli/runner/context.rb
avm-tools-0.69.3 vendor/eac_cli/lib/eac_cli/runner/context.rb
eac_cli-0.8.0 lib/eac_cli/runner/context.rb
ehbrs-tools-0.14.0 vendor/eac_cli/lib/eac_cli/runner/context.rb
eac_cli-0.7.0 lib/eac_cli/runner/context.rb
avm-tools-0.69.2 vendor/eac_cli/lib/eac_cli/runner/context.rb
avm-tools-0.69.1 vendor/eac_cli/lib/eac_cli/runner/context.rb
eac_cli-0.6.1 lib/eac_cli/runner/context.rb
avm-tools-0.69.0 vendor/eac_cli/lib/eac_cli/runner/context.rb
eac_cli-0.6.0 lib/eac_cli/runner/context.rb