Skip to content

Commit

Permalink
force to_s for ruby 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
eapache committed Jul 20, 2014
1 parent b15163d commit 690ec8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/starscope/langs/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def extract_node(node)
when :send
name = scoped_name(node)
yield :calls, name, :line_no => loc.line, :col => loc.column
if name.last =~ /\w+=$/
if name.last.to_s =~ /\w+=$/
name[-1] = name.last.to_s.chop.to_sym
yield :assigns, name, :line_no => loc.line, :col => loc.column
end
Expand Down

0 comments on commit 690ec8d

Please sign in to comment.