Method: Fast::Node#search

Defined in:
lib/fast.rb

#search(pattern, *args) ⇒ Array<Fast::Node>

Search recursively into a node and its children using a pattern.

Parameters:

  • pattern (String)
  • *args (Array)

    extra arguments to interpolate in the pattern.

Returns:

  • (Array<Fast::Node>)

    ] with files and results



108
109
110
# File 'lib/fast.rb', line 108

def search(pattern, *args)
  Fast.search(pattern, self, *args)
end