Class: RBS::Environment::SingleEntry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of SingleEntry.



23
24
25
26
27
# File 'lib/rbs/environment.rb', line 23

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

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



20
21
22
# File 'lib/rbs/environment.rb', line 20

def context
  @context
end

#declObject (readonly)

Returns the value of attribute decl.



21
22
23
# File 'lib/rbs/environment.rb', line 21

def decl
  @decl
end

#nameObject (readonly)

Returns the value of attribute name.



19
20
21
# File 'lib/rbs/environment.rb', line 19

def name
  @name
end