module Pakyow::Support::Bindable
Makes an object bindable.
Public Instance Methods
[](key)
click to toggle source
# File lib/pakyow/support/bindable.rb, line 12 def [](key) if include?(key) public_send(key.to_s.to_sym) end end
include?(key)
click to toggle source
# File lib/pakyow/support/bindable.rb, line 8 def include?(key) respond_to?(key.to_s.to_sym) end