Class: Wood::TreePattern::AnyMatcher
- Inherits:
-
Object
- Object
- Wood::TreePattern::AnyMatcher
- Defined in:
- lib/wood/tree_pattern/any_matcher.rb
Overview
Matches anything it is matched / compared against.
Instance Method Summary collapse
Instance Method Details
#==(node) ⇒ Object
8 9 10 |
# File 'lib/wood/tree_pattern/any_matcher.rb', line 8 def == node return true end |
#===(node) ⇒ Object
4 5 6 |
# File 'lib/wood/tree_pattern/any_matcher.rb', line 4 def === node return true end |
#inspect ⇒ Object
16 17 18 |
# File 'lib/wood/tree_pattern/any_matcher.rb', line 16 def inspect sexp.inspect end |
#sexp ⇒ Object
12 13 14 |
# File 'lib/wood/tree_pattern/any_matcher.rb', line 12 def sexp [:any_matcher] end |