Method: Fast::Node#capture

Defined in:
lib/fast.rb

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

Captures elements from search recursively

Parameters:

  • pattern (String)
  • *args (Array)

    extra arguments to interpolate in the pattern.

Returns:

  • (Array<Fast::Node>)

    ] with files and results



116
117
118
# File 'lib/fast.rb', line 116

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