Class: LowNode
- Inherits:
-
Object
- Object
- LowNode
- Extended by:
- Observers
- Includes:
- Low::Events, Low::Templates::Renderer, Low::Types, LowType
- Defined in:
- lib/low_node.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
Class Method Summary collapse
Instance Method Summary collapse
- #handle(event:) ⇒ Object
-
#initialize(event:) ⇒ LowNode
constructor
A new instance of LowNode.
Methods included from Low::Templates::Renderer
included, #render, #render_template
Constructor Details
#initialize(event:) ⇒ LowNode
Returns a new instance of LowNode.
20 21 22 |
# File 'lib/low_node.rb', line 20 def initialize(event:) @event = event end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
18 19 20 |
# File 'lib/low_node.rb', line 18 def event @event end |
Class Method Details
.handle(event:) ⇒ Object
29 30 31 |
# File 'lib/low_node.rb', line 29 def handle(event:) self.new(event:).handle(event:) end |
.inherited(child) ⇒ Object
33 34 35 |
# File 'lib/low_node.rb', line 33 def inherited(child) child.include LowType end |
Instance Method Details
#handle(event:) ⇒ Object
24 25 26 |
# File 'lib/low_node.rb', line 24 def handle(event:) nil end |