Class: Kernai::Event
- Inherits:
-
Object
- Object
- Kernai::Event
- Defined in:
- lib/kernai/kernel.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, data) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(type, data) ⇒ Event
Returns a new instance of Event.
9 10 11 12 |
# File 'lib/kernai/kernel.rb', line 9 def initialize(type, data) @type = type @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/kernai/kernel.rb', line 7 def data @data end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/kernai/kernel.rb', line 7 def type @type end |