class Spine::Hub::Subscriptions::Closure
Subscriber
for blocks.
Requirements¶ ↑
-
event
-Subscriber
triggering event. -
action
- Block to execute.
Attributes
action[R]
trigger[R]
Public Class Methods
new(event, action)
click to toggle source
# File lib/spine/hub/subscriptions/closure.rb, line 12 def initialize(event, action) @trigger = event @action = action end
Public Instance Methods
notify(event, *arguments)
click to toggle source