Permalink
Browse files

fixed bug in ruby 1.8

  • Loading branch information...
1 parent 87910bc commit 1fb31c8e0ef5de6d550a8e9fe9e6f804c952412f @nougad committed Jan 28, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/ruby-osc/streamscanner.rb
@@ -10,7 +10,11 @@ def initialize
end
def << arg
- @scanner << arg
+ if @scanner.string.frozen? #Bug? in ruby 1.8.7
+ @scanner.string = @scanner.string + arg
+ else
+ @scanner << arg
+ end
end
def tryparse

0 comments on commit 1fb31c8

Please sign in to comment.