Class: LowNode

Inherits:
Object
  • Object
show all
Extended by:
Observers
Includes:
Low::Templates::Renderer, Low::Types, LowType
Defined in:
lib/low_node.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#eventObject (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