Class: RubyUnderscore::EnhancerHelper::EnhancerDetector

Inherits:
AbstractProcessor
  • Object
show all
Defined in:
lib/tree_converters.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractProcessor

#assert_empty, #proceed

Constructor Details

#initializeEnhancerDetector

Returns a new instance of EnhancerDetector.



72
73
74
75
# File 'lib/tree_converters.rb', line 72

def initialize
  super
  @enhanceCount = 0
end

Instance Attribute Details

#enhanceCountObject (readonly)

Returns the value of attribute enhanceCount.



70
71
72
# File 'lib/tree_converters.rb', line 70

def enhanceCount
  @enhanceCount
end

Instance Method Details

#process_vcall(sexp) ⇒ Object



77
78
79
80
# File 'lib/tree_converters.rb', line 77

def process_vcall(sexp)
  @enhanceCount += 1 if sexp[1] == :_
  return s *sexp
end