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
4
5
|
# 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.
7
8
9
|
# File 'lib/osc-ruby/osc_argument.rb', line 7
def val
@val
end
|
Instance Method Details
#to_f ⇒ Object
13
14
15
|
# File 'lib/osc-ruby/osc_argument.rb', line 13
def to_f()
@val.to_f
end
|
#to_i ⇒ Object
9
10
11
|
# File 'lib/osc-ruby/osc_argument.rb', line 9
def to_i()
@val.to_i
end
|
#to_s ⇒ Object
17
18
19
|
# File 'lib/osc-ruby/osc_argument.rb', line 17
def to_s()
@val.to_s
end
|