Class: OSC::OSCArgument

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

Direct Known Subclasses

OSCBlob, OSCDouble64, OSCFloat32, OSCInt32, OSCString

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(val) ⇒ OSCArgument

Returns a new instance of OSCArgument.



3
4
5
# 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.



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

def val
  @val
end

Instance Method Details

#to_fObject



13
14
15
# File 'lib/osc-ruby/osc_argument.rb', line 13

def to_f()
  @val.to_f
end

#to_iObject



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

def to_i()
  @val.to_i
end

#to_sObject



17
18
19
# File 'lib/osc-ruby/osc_argument.rb', line 17

def to_s()
  @val.to_s
end