Sha256: 0516772077de00dee48edac953213657225190ddeae6c0e29a9168c17975ab5b

Contents?: true

Size: 218 Bytes

Versions: 7

Compression:

Stored size: 218 Bytes

Contents

module MotionBindable::Strategies

  class Proc < ::MotionBindable::Strategy

    def refresh
      update_attribute
    end

    private

    def update_attribute
      self.attribute = bound.call
    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
motion_bindable-0.1.1 lib/strategies/proc.rb
motion_bindable-0.1.0 lib/strategies/proc.rb
motion_bindable-0.0.6 lib/strategies/proc.rb
motion_bindable-0.0.5 lib/strategies/proc.rb
motion_bindable-0.0.4 lib/strategies/proc.rb
motion_bindable-0.0.3 lib/strategies/proc.rb
motion_bindable-0.0.2 lib/strategies/proc.rb