Class: Fast::All

Inherits:
Find
  • Object
show all
Defined in:
lib/fast.rb

Overview

Intersect expressions. Works like a AND operator.

Instance Attribute Summary

Attributes inherited from Find

#token

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

Returns:

  • (Boolean)


648
649
650
# File 'lib/fast.rb', line 648

def match?(node)
  token.all? { |expression| expression.match?(node) }
end

#to_sObject



652
653
654
# File 'lib/fast.rb', line 652

def to_s
  "all[#{token}]"
end