lib/osc-ruby/osc_argument.rb in osc-ruby-1.1.3 vs lib/osc-ruby/osc_argument.rb in osc-ruby-1.1.4

- old
+ new

@@ -1,15 +1,25 @@ module OSC class OSCArgument - def initialize(val) @val = val end + def initialize(val) + @val = val + end attr_accessor :val - def to_i() @val.to_i end - def to_f() @val.to_f end - def to_s() @val.to_s end + def to_i() + @val.to_i + end - private + def to_f() + @val.to_f + end + + def to_s() + @val.to_s + end + + private def padding(s) s + ("\000" * ((4 - (s.size % 4)) % 4)) end end end \ No newline at end of file