Class: MatchData
- Inherits:
-
Object
- Object
- MatchData
- Defined in:
- lib/match_skeleton/match_data.rb
Overview
Class MatchData
Modifies the operator #== so it can be compared with MatchSkeleton.
Instance Method Summary collapse
-
#==(obj) ⇒ Boolean
Compares with MatchSkeleton, in addition to MatchData.
-
#equal_before_match_skeleton ⇒ Object
Backup alias for #==.
Instance Method Details
#==(obj) ⇒ Boolean
Compares with MatchSkeleton, in addition to MatchData
16 17 18 19 20 |
# File 'lib/match_skeleton/match_data.rb', line 16 def ==(obj) (string == obj.string) && (regexp == obj.regexp) && (pre_match == obj.pre_match) end |
#equal_before_match_skeleton ⇒ Object
Backup alias for #==
10 |
# File 'lib/match_skeleton/match_data.rb', line 10 alias_method :equal_before_match_skeleton, :== |