Class: LowNode
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
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
Returns the value of attribute event.
18
19
20
|
# File 'lib/low_node.rb', line 18
def event
@event
end
|
Class Method Details
.count ⇒ Object
38
39
40
|
# File 'lib/low_node.rb', line 38
def count
@count ||= 0
end
|
.handle(event:) ⇒ Object
29
30
31
|
# File 'lib/low_node.rb', line 29
def handle(event:)
self.new(event:).handle(event:)
end
|
.increase_count ⇒ Object
42
43
44
|
# File 'lib/low_node.rb', line 42
def increase_count
@count = count + 1
end
|
.inherited(child) ⇒ Object
33
34
35
36
|
# File 'lib/low_node.rb', line 33
def inherited(child)
child.include LowType
increase_count
end
|
Instance Method Details
#handle(event:) ⇒ Object
24
25
26
|
# File 'lib/low_node.rb', line 24
def handle(event:)
nil
end
|