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
637 638 639 |
# File 'lib/fast.rb', line 637 def match?(node) token.any? { |expression| Fast.match?(expression, node) } end |
#to_s ⇒ Object
641 642 643 |
# File 'lib/fast.rb', line 641 def to_s "any[#{token.map(&:to_s).join(', ')}]" end |