class Frappuccino::Select
Public Class Methods
new(source, &blk)
click to toggle source
# File lib/frappuccino/stream/select.rb, line 3 def initialize(source, &blk) @block = blk source.add_observer(self) end
Public Instance Methods
update(event)
click to toggle source
# File lib/frappuccino/stream/select.rb, line 8 def update(event) if @block.call(event) occur(event) end end