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
31 32 33 34 35 |
# File 'lib/unparser/emitter.rb', line 31 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
27 28 29 |
# File 'lib/unparser/emitter.rb', line 27 def local_variable_scope AST::LocalVariableScope.new(node) end |