Class: RubyUnderscore::EnhancerHelper::EnhancerDetector
- Inherits:
-
AbstractProcessor
- Object
- SexpProcessor
- AbstractProcessor
- RubyUnderscore::EnhancerHelper::EnhancerDetector
- Defined in:
- lib/tree_converters.rb
Instance Attribute Summary collapse
-
#enhanceCount ⇒ Object
readonly
Returns the value of attribute enhanceCount.
Instance Method Summary collapse
-
#initialize ⇒ EnhancerDetector
constructor
A new instance of EnhancerDetector.
- #process_vcall(sexp) ⇒ Object
Methods inherited from AbstractProcessor
Constructor Details
#initialize ⇒ EnhancerDetector
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
#enhanceCount ⇒ Object (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 |