Class: LEAP::Motion::WS::Hand
- Inherits:
-
Object
- Object
- LEAP::Motion::WS::Hand
- Defined in:
- lib/leap/motion/ws/hand.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data) ⇒ Hand
constructor
A new instance of Hand.
Constructor Details
#initialize(data) ⇒ Hand
Returns a new instance of Hand.
15 16 17 18 19 20 |
# File 'lib/leap/motion/ws/hand.rb', line 15 def initialize(data) data.each do |k, v| instance_variable_set("@#{k}", v) self.class.send(:define_method, k.to_sym, lambda { instance_variable_get("@#{k}") }) end end |