Module: Ray::DSL::EventRaiser
- Included in:
- Helper
- Defined in:
- lib/ray/dsl/event_raiser.rb
Overview
The module charged to raise your events, asking to an event runner to send this event to the objects who said they were interested in it.
Instance Method Summary collapse
-
#raise_event(type, *args) ⇒ Object
Raises a new event, with the given type and arguments.
- #raiser_runner ⇒ Object
- #raiser_runner=(arg) ⇒ Object
Instance Method Details
#raise_event(type, *args) ⇒ Object
Raises a new event, with the given type and arguments.
7 8 9 10 |
# File 'lib/ray/dsl/event_raiser.rb', line 7 def raise_event(type, *args) return unless raiser_runner raiser_runner.add_event(type, args) end |
#raiser_runner ⇒ Object
12 13 14 |
# File 'lib/ray/dsl/event_raiser.rb', line 12 def raiser_runner @__raiser_runner end |
#raiser_runner=(arg) ⇒ Object
16 17 18 |
# File 'lib/ray/dsl/event_raiser.rb', line 16 def raiser_runner=(arg) @__raiser_runner = arg end |