Class: Yadi::Injector

Inherits:
Object
  • Object
show all
Defined in:
lib/yadi/injector.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Injector

Returns a new instance of Injector.



6
7
8
9
10
# File 'lib/yadi/injector.rb', line 6

def initialize(args)
  options = args.last.is_a?(::Hash) ? args.pop : {}
  @args = args.freeze
  @options = options.freeze
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



3
4
5
# File 'lib/yadi/injector.rb', line 3

def args
  @args
end

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/yadi/injector.rb', line 4

def options
  @options
end