Class: Yoda::Typing::Contexts::NamespaceContext

Inherits:
BaseContext
  • Object
show all
Defined in:
lib/yoda/typing/contexts/namespace_context.rb

Instance Attribute Summary

Attributes inherited from BaseContext

#constant_ref, #environment, #parent, #receiver, #type_binding

Instance Method Summary collapse

Methods inherited from BaseContext

#constant_resolver, #generator, #initialize, #lexical_scope_types, #method_receiver, #registry

Methods included from ContextDerivation

#constant_ref, #derive_block_context, #derive_class_context, #derive_method_context, #environment, #receiver

Constructor Details

This class inherits a constructor from Yoda::Typing::Contexts::BaseContext

Instance Method Details

#parent_variable_scope_contextContext?

Returns:

  • (Context, nil)


8
9
10
# File 'lib/yoda/typing/contexts/namespace_context.rb', line 8

def parent_variable_scope_context
  nil
end