Skip to content

Commit

Permalink
Merge pull request #10 from rkh/patch-1
Browse files Browse the repository at this point in the history
remove eval
  • Loading branch information
tenderlove committed Jan 10, 2012
2 parents 89aab20 + 99c8547 commit f4aa745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rkelly/nodes/binary_node.rb
Expand Up @@ -12,7 +12,7 @@ def initialize(left, right)
DoWhile Switch LogicalAnd UnsignedRightShift Modulus While
NotStrictEqual Less With In Greater BitOr StrictEqual LogicalOr
BitXOr LeftShift Equal BitAnd InstanceOf Divide RightShift].each do |node|
eval "class #{node}Node < BinaryNode; end"
const_set "#{node}Node", Class.new(BinaryNode)
end
end
end

0 comments on commit f4aa745

Please sign in to comment.