Permalink
Browse files

Merge branch 'master' of github.com:seejohnrun/ice_cube

  • Loading branch information...
seejohnrun committed Dec 8, 2011
2 parents 0566f93 + e00c9f0 commit 02949ac707a2b918388b34f9a87c23819d0e46a8
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/ice_cube/rule.rb
View
@@ -12,8 +12,10 @@ def terminating?
end
def ==(rule)
- hash = to_hash
- hash && hash == rule.to_hash
+ if rule.is_a? Rule
+ hash = to_hash
+ hash && hash == rule.to_hash
+ end
end
def hash

0 comments on commit 02949ac

Please sign in to comment.