Sha256: d17af008ea8c40f1b46ff0ebfcf887562cf843b27bdcd6365793f2af99fa5f38
Contents?: true
Size: 222 Bytes
Versions: 3
Compression:
Stored size: 222 Bytes
Contents
module MotionBindable::Strategies class Proc < ::MotionBindable::Strategy def refresh_bound bound.call end def on_bound_change(new = nil) self.attribute = new || bound.call end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
motion_bindable-0.2.2 | lib/strategies/proc.rb |
motion_bindable-0.2.1 | lib/strategies/proc.rb |
motion_bindable-0.2.0 | lib/strategies/proc.rb |