Top Level Namespace

Includes:
Oschii

Defined Under Namespace

Modules: Oschii

Constant Summary

Constants included from Oschii

Oschii::BASIC_COMPONENT_TYPES, Oschii::COMPONENT_TYPES, Oschii::DeviceUnavailable, Oschii::I2C, Oschii::LOGO, Oschii::NoConnection, Oschii::TemplateError, Oschii::VERSION

Instance Method Summary collapse

Methods included from Oschii

#cloud, included, #populate, #send_osc, #serial, #serve_oschii_forever

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args, &block) ⇒ Object

Raises:

  • (NameError)


12
13
14
15
16
17
18
19
20
# File 'lib/oschii/session.rb', line 12

def method_missing(m, *args, &block)
  return if @cloud.nil?

  node = cloud.get(m)

  return node unless node.nil?

  raise NameError, m
end