Class: RBS::Environment::SingleEntry

Inherits:
Object
  • Object
show all
Includes:
ContextUtil
Defined in:
lib/rbs/environment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ContextUtil

#context

Constructor Details

#initialize(name:, decl:, outer:) ⇒ SingleEntry

Returns a new instance of SingleEntry.



98
99
100
101
102
# File 'lib/rbs/environment.rb', line 98

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

Instance Attribute Details

#declObject (readonly)

Returns the value of attribute decl.



96
97
98
# File 'lib/rbs/environment.rb', line 96

def decl
  @decl
end

#nameObject (readonly)

Returns the value of attribute name.



94
95
96
# File 'lib/rbs/environment.rb', line 94

def name
  @name
end

#outerObject (readonly)

Returns the value of attribute outer.



95
96
97
# File 'lib/rbs/environment.rb', line 95

def outer
  @outer
end