Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixing class eval call

  • Loading branch information...
commit 850267edd7f19633a6868110d523f86f147c1653 1 parent dae7947
Aaron Patterson authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  lib/journey/nodes/node.rb
6  lib/journey/nodes/node.rb
@@ -58,11 +58,11 @@ def literal?; false; end
58 58
     end
59 59
 
60 60
     %w{ Symbol Slash Dot }.each do |t|
61  
-      class_eval %{
62  
-        class #{t} < Terminal
  61
+      class_eval <<-eoruby, __FILE__, __LINE__ + 1
  62
+        class #{t} < Terminal;
63 63
           def type; :#{t.upcase}; end
64 64
         end
65  
-      }
  65
+      eoruby
66 66
     end
67 67
 
68 68
     class Symbol < Terminal

0 notes on commit 850267e

Please sign in to comment.
Something went wrong with that request. Please try again.