Class: OSC::OSCArgument
- Inherits:
-
Object
show all
- Defined in:
- lib/osc-ruby/osc_argument.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
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
#val ⇒ Object
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_f ⇒ Object
8
|
# File 'lib/osc-ruby/osc_argument.rb', line 8
def to_f() @val.to_f end
|
#to_i ⇒ Object
7
|
# File 'lib/osc-ruby/osc_argument.rb', line 7
def to_i() @val.to_i end
|
#to_s ⇒ Object
9
|
# File 'lib/osc-ruby/osc_argument.rb', line 9
def to_s() @val.to_s end
|