Module: Duby::AST::ClassScoped
- Included in:
- Field, FieldAssignment, FieldDeclaration
- Defined in:
- lib/duby/ast.rb
Instance Method Summary collapse
Instance Method Details
#scope ⇒ Object
227 228 229 230 231 232 233 |
# File 'lib/duby/ast.rb', line 227 def scope @scope ||= begin scope = parent scope = scope.parent until scope.nil? || ClassDefinition === scope scope end end |