Skip to content

Commit

Permalink
Fix use of gsub! on a frozen string (fixes alexgutteridge#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-tomlein committed Feb 16, 2013
1 parent 6a51ee7 commit 3ba3491
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/rsruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,7 @@ def RSRuby.convert_method_name(name)
if name.length > 1 and name[-1].chr == '_' and name[-2].chr != '_'
name = name[0..-2]
end
name.gsub!(/__/,'<-')
name.gsub!(/_/, '.')
return name
return name.gsub(/__/, '<-').gsub(/_/, '.')
end

#Converts an Array of function arguments into lcall format. If the last
Expand Down

0 comments on commit 3ba3491

Please sign in to comment.