Class: Fast::Any
Overview
Matches any of the internal expressions. Works like a OR condition.
Instance Attribute Summary
Attributes inherited from Find
Instance Method Summary collapse
Methods inherited from Find
#==, #compare_symbol_or_head, #debug, #debug_match_recursive, #initialize, #match_recursive
Constructor Details
This class inherits a constructor from Fast::Find
Instance Method Details
#match?(node) ⇒ Boolean
621 622 623 |
# File 'lib/fast.rb', line 621 def match?(node) token.any? { |expression| Fast.match?(node, expression) } end |
#to_s ⇒ Object
625 626 627 |
# File 'lib/fast.rb', line 625 def to_s "any[#{token}]" end |