Module: Unparser::Emitter::LocalVariableRoot
Class Method Summary collapse
Instance Method Summary collapse
-
#local_variable_scope ⇒ Parser::AST::Node
private
Return local variable root.
Class Method Details
.included(descendant) ⇒ Object
44 45 46 47 48 |
# File 'lib/unparser/emitter.rb', line 44 def self.included(descendant) descendant.class_eval do memoize :local_variable_scope end end |
Instance Method Details
#local_variable_scope ⇒ Parser::AST::Node
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return local variable root
40 41 42 |
# File 'lib/unparser/emitter.rb', line 40 def local_variable_scope AST::LocalVariableScope.new(node) end |