Class: LowNode
- Inherits:
-
Object
- Object
- LowNode
- Extended by:
- Observers
- Includes:
- 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.
19 20 21 |
# File 'lib/low_node.rb', line 19 def initialize(event:) @event = event end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
17 18 19 |
# File 'lib/low_node.rb', line 17 def event @event end |
Class Method Details
.handle(event:) ⇒ Object
28 29 30 |
# File 'lib/low_node.rb', line 28 def handle(event:) self.new(event:).handle(event:) end |
.inherited(child) ⇒ Object
32 33 34 |
# File 'lib/low_node.rb', line 32 def inherited(child) child.include LowType end |
Instance Method Details
#handle(event:) ⇒ Object
23 24 25 |
# File 'lib/low_node.rb', line 23 def handle(event:) nil end |