Module: Mirah::AST::Binding

Included in:
MethodDefinition, Script
Defined in:
lib/mirah/ast.rb

Instance Method Summary collapse

Instance Method Details

#binding_type(mirah = nil) ⇒ Object



379
380
381
# File 'lib/mirah/ast.rb', line 379

def binding_type(mirah=nil)
  static_scope.binding_type(defining_class, mirah)
end

#binding_type=(type) ⇒ Object



383
384
385
# File 'lib/mirah/ast.rb', line 383

def binding_type=(type)
  static_scope.binding_type = type
end

#has_binding?Boolean

Returns:



387
388
389
# File 'lib/mirah/ast.rb', line 387

def has_binding?
  static_scope.has_binding?
end