Class: Fast::Not

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

Overview

Negates the current expression ‘!int` is equilvalent to “not int”

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, #to_s

Constructor Details

This class inherits a constructor from Fast::Find

Instance Method Details

#match?(node) ⇒ Boolean

Returns:

  • (Boolean)


689
690
691
# File 'lib/fast.rb', line 689

def match?(node)
  !super
end