Class: Sergio::Element
- Inherits:
-
Object
- Object
- Sergio::Element
- Defined in:
- lib/sergio/sergio_element.rb
Instance Attribute Summary collapse
-
#aggregate_element ⇒ Object
Returns the value of attribute aggregate_element.
-
#callback ⇒ Object
Returns the value of attribute callback.
-
#new_path ⇒ Object
Returns the value of attribute new_path.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(new_path, args, callback, aggregate_element) ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(new_path, args, callback, aggregate_element) ⇒ Element
Returns a new instance of Element.
4 5 6 7 8 9 |
# File 'lib/sergio/sergio_element.rb', line 4 def initialize(new_path, args, callback, aggregate_element) @new_path = new_path.clone @callback = callback @options = args @aggregate_element = aggregate_element end |
Instance Attribute Details
#aggregate_element ⇒ Object
Returns the value of attribute aggregate_element.
3 4 5 |
# File 'lib/sergio/sergio_element.rb', line 3 def aggregate_element @aggregate_element end |
#callback ⇒ Object
Returns the value of attribute callback.
3 4 5 |
# File 'lib/sergio/sergio_element.rb', line 3 def callback @callback end |
#new_path ⇒ Object
Returns the value of attribute new_path.
3 4 5 |
# File 'lib/sergio/sergio_element.rb', line 3 def new_path @new_path end |
#options ⇒ Object
Returns the value of attribute options.
3 4 5 |
# File 'lib/sergio/sergio_element.rb', line 3 def @options end |