Class: OSC::OSCArgument

Inherits:
Object
  • Object
show all
Defined in:
lib/osc-ruby/osc_argument.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.



3
# File 'lib/osc-ruby/osc_argument.rb', line 3

def initialize(val) @val = val end

Instance Attribute Details

#valObject

Returns the value of attribute val.



5
6
7
# File 'lib/osc-ruby/osc_argument.rb', line 5

def val
  @val
end

Instance Method Details

#to_fObject



8
# File 'lib/osc-ruby/osc_argument.rb', line 8

def to_f() @val.to_f end

#to_iObject



7
# File 'lib/osc-ruby/osc_argument.rb', line 7

def to_i() @val.to_i end

#to_sObject



9
# File 'lib/osc-ruby/osc_argument.rb', line 9

def to_s() @val.to_s end