Method: Fast::FindFromArgument#match?

Defined in:
lib/fast.rb

#match?(node) ⇒ Boolean

Returns:

  • (Boolean)


562
563
564
565
566
# File 'lib/fast.rb', line 562

def match?(node)
  raise 'You must define arguments to match' unless @arguments

  compare_symbol_or_head @arguments[@capture_argument], node
end