Class: Wood::TreePattern::AnyMatcher

Inherits:
Object
  • Object
show all
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

#inspectObject



16
17
18
# File 'lib/wood/tree_pattern/any_matcher.rb', line 16

def inspect
  sexp.inspect
end

#sexpObject



12
13
14
# File 'lib/wood/tree_pattern/any_matcher.rb', line 12

def sexp
  [:any_matcher]
end