Class: Ray::DSL::Event
- Inherits:
-
Object
- Object
- Ray::DSL::Event
- Defined in:
- lib/ray/dsl/event.rb
Overview
Used internally to store event when raise_event is called.
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, args) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(type, args) ⇒ Event
Returns a new instance of Event.
5 6 7 8 |
# File 'lib/ray/dsl/event.rb', line 5 def initialize(type, args) @type = type @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
11 12 13 |
# File 'lib/ray/dsl/event.rb', line 11 def args @args end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
10 11 12 |
# File 'lib/ray/dsl/event.rb', line 10 def type @type end |