Class: OSC::OSCFloat32
- Inherits:
-
OSCArgument
- Object
- OSCArgument
- OSC::OSCFloat32
- Defined in:
- lib/osc-ruby/osc_types.rb
Instance Attribute Summary
Attributes inherited from OSCArgument
Instance Method Summary collapse
Methods inherited from OSCArgument
#initialize, #to_f, #to_i, #to_s
Constructor Details
This class inherits a constructor from OSC::OSCArgument
Instance Method Details
#encode ⇒ Object
19 20 21 |
# File 'lib/osc-ruby/osc_types.rb', line 19 def encode [@val].pack('g').force_encoding("BINARY") end |
#tag ⇒ Object
15 16 17 |
# File 'lib/osc-ruby/osc_types.rb', line 15 def tag 'f' end |