Class: OSC::OSCArgument

Inherits:
Object
  • Object
show all
Defined in:
lib/osc.rb

Direct Known Subclasses

OSCBlob, OSCFloat32, OSCInt32, OSCString

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(val) ⇒ OSCArgument

Returns a new instance of OSCArgument.



12
# File 'lib/osc.rb', line 12

def initialize(val) @val = val end

Instance Attribute Details

#valObject

Returns the value of attribute val.



14
15
16
# File 'lib/osc.rb', line 14

def val
  @val
end

Instance Method Details

#to_fObject



17
# File 'lib/osc.rb', line 17

def to_f() @val.to_f end

#to_iObject



16
# File 'lib/osc.rb', line 16

def to_i() @val.to_i end

#to_sObject



18
# File 'lib/osc.rb', line 18

def to_s() @val.to_s end