Class: Machete::Matchers::AnyMatcher

Inherits:
Matcher
  • Object
show all
Defined in:
lib/machete/matchers.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



168
169
170
# File 'lib/machete/matchers.rb', line 168

def ==(other)
  other.instance_of?(self.class)
end

#matches?(node) ⇒ Boolean

Returns:

  • (Boolean)


172
173
174
# File 'lib/machete/matchers.rb', line 172

def matches?(node)
  true
end