123456789_123456789_123456789_123456789_123456789_

Class: RBS::Environment::SingleEntry

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
self, ContextUtil
Inherits: Object
Defined in: lib/rbs/environment.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(name:, decl:, outer:) ⇒ SingleEntry

[ GitHub ]

  
# File 'lib/rbs/environment.rb', line 114

def initialize(name:, decl:, outer:)
  @name = name
  @decl = decl
  @outer = outer
end

Instance Attribute Details

#decl (readonly)

[ GitHub ]

  
# File 'lib/rbs/environment.rb', line 112

attr_reader :decl

#name (readonly)

[ GitHub ]

  
# File 'lib/rbs/environment.rb', line 110

attr_reader :name

#outer (readonly)

[ GitHub ]

  
# File 'lib/rbs/environment.rb', line 111

attr_reader :outer

Instance Method Details

#context

[ GitHub ]

  
# File 'lib/rbs/environment.rb', line 122

def context
  @context ||= calculate_context(outer)
end