class Riml::AST_Rewriter::ClassDefinitionToFunctions::RegisterPrivateFunctions
Public Instance Methods
match?(node)
click to toggle source
# File lib/riml/ast_rewriter.rb, line 434 def match?(node) node.instance_of?(DefNode) && node.name != 'initialize' end
max_recursion_lvl()
click to toggle source
# File lib/riml/ast_rewriter.rb, line 442 def max_recursion_lvl 1 end
replace(node)
click to toggle source
# File lib/riml/ast_rewriter.rb, line 438 def replace(node) ast.parent.private_function_names << node.name end