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)


677
678
679
# File 'lib/fast.rb', line 677

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

#to_sObject



681
682
683
# File 'lib/fast.rb', line 681

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