Permalink
Browse files

Added several eql? aliases

  • Loading branch information...
1 parent 9d32630 commit 3d507541bf427695717762da1a154dff7c57208e @mjackson committed Mar 17, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/citrus.rb
View
@@ -879,6 +879,8 @@ def ==(other)
end
end
+ alias_method :eql?, :==
+
# Returns +true+ if this rule is a Terminal.
def terminal? # :nodoc:
true
@@ -922,6 +924,8 @@ def ==(other)
end
end
+ alias_method :eql?, :==
+
# Returns the Citrus notation of this rule as a string.
def to_citrus # :nodoc:
if case_sensitive?
@@ -1343,6 +1347,8 @@ def ==(other)
end
end
+ alias_method :eql?, :==
+
def inspect
@string.inspect
end

0 comments on commit 3d50754

Please sign in to comment.