Module: LeapMotion
- Defined in:
- lib/leapmotion.rb,
lib/leapmotion/main.rb,
lib/leapmotion/options.rb,
lib/leapmotion/version.rb
Defined Under Namespace
Constant Summary collapse
- DEFAULT_OPTION =
{ :websocket => "ws://127.0.0.1:6437", :gestures => false }
- VERSION =
"0.0.4"
Class Method Summary collapse
Class Method Details
.connect(opts = {}) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/leapmotion/main.rb', line 2 def self.connect(opts={}) DEFAULT_OPTION.each do |k,v| opts[k] = v unless opts.has_key? k end LeapMotion::Device.new opts end |