Class: Yadi::Injector
- Inherits:
-
Object
- Object
- Yadi::Injector
- Defined in:
- lib/yadi/injector.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(args) ⇒ Injector
constructor
A new instance of Injector.
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) = args.last.is_a?(::Hash) ? args.pop : {} @args = args.freeze @options = .freeze end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
3 4 5 |
# File 'lib/yadi/injector.rb', line 3 def args @args end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/yadi/injector.rb', line 4 def @options end |