Permalink
Browse files

fixing class eval call

  • Loading branch information...
1 parent dae7947 commit 850267edd7f19633a6868110d523f86f147c1653 @tenderlove tenderlove committed Sep 25, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/journey/nodes/node.rb
@@ -58,11 +58,11 @@ def literal?; false; end
end
%w{ Symbol Slash Dot }.each do |t|
- class_eval %{
- class #{t} < Terminal
+ class_eval <<-eoruby, __FILE__, __LINE__ + 1
+ class #{t} < Terminal;
def type; :#{t.upcase}; end
end
- }
+ eoruby
end
class Symbol < Terminal

0 comments on commit 850267e

Please sign in to comment.