Class: Substance::InputObject
- Inherits:
-
AttributeObject
- Object
- RootObject
- AttributeObject
- Substance::InputObject
- Includes:
- Objects::Arguments, Objects::Options
- Defined in:
- lib/substance/input_object.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(**input) ⇒ InputObject
constructor
A new instance of InputObject.
Methods included from Objects::Attributes
Constructor Details
#initialize(**input) ⇒ InputObject
Returns a new instance of InputObject.
14 15 16 17 18 19 |
# File 'lib/substance/input_object.rb', line 14 def initialize(**input) @input = input run_callbacks(:initialize) do input.each { |key, value| __send__("#{key}=".to_sym, value) } end end |