Sha256: 92f2d97019ed578564e22500d00acf3d5b883766ca56982e26a492156e2451db
Contents?: true
Size: 733 Bytes
Versions: 4
Compression:
Stored size: 733 Bytes
Contents
module Ray module DSL # The module charged to raise your events, asking to an event runner to send # this event to the objects which registered to it. module EventRaiser # Raises a new event, with the given type and arguments. def raise_event(type, *args) raise NoRunnerError, self unless raiser_runner raiser_runner.add_event(type, args) end # @return [Ray::DSL::EventRunner] Event runner used to raise events. def raiser_runner @__raiser_runner end # Sets the event runner used to raise events. # @param [Ray::DSL::EventRunner] arg The new event runner. def raiser_runner=(arg) @__raiser_runner = arg end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ray-0.2.1 | lib/ray/dsl/event_raiser.rb |
ray-0.2.0 | lib/ray/dsl/event_raiser.rb |
ray-0.1.1 | lib/ray/dsl/event_raiser.rb |
ray-0.1.0 | lib/ray/dsl/event_raiser.rb |