Class: RubyUnderscore::UnderscoreEnhancer

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

Instance Method Summary collapse

Methods included from EnhancerHelper

#assertSexpIs, #chain, #clone, #needsEnhancing, #sexpEnhancingCount, #sexpNeedsEnhancing, #sexpOf

Instance Method Details

#enhance(clas, method) ⇒ Object



227
228
229
230
231
# File 'lib/tree_converters.rb', line 227

def enhance(clas, method)
  sexp = sexpOf clas, method
  return unless sexpNeedsEnhancing sexp
  clas.class_eval chain sexp, VcallEnhancer, Unifier, Ruby2Ruby
end