Class: RBS::Environment::SingleEntry
- Inherits:
-
Object
- Object
- RBS::Environment::SingleEntry
- Defined in:
- lib/rbs/environment.rb
Direct Known Subclasses
ClassAliasEntry, ConstantEntry, GlobalEntry, InterfaceEntry, ModuleAliasEntry, TypeAliasEntry
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#decl ⇒ Object
readonly
Returns the value of attribute decl.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, decl:, context:) ⇒ SingleEntry
constructor
A new instance of SingleEntry.
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
#context ⇒ Object (readonly)
Returns the value of attribute context.
20 21 22 |
# File 'lib/rbs/environment.rb', line 20 def context @context end |
#decl ⇒ Object (readonly)
Returns the value of attribute decl.
21 22 23 |
# File 'lib/rbs/environment.rb', line 21 def decl @decl end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
19 20 21 |
# File 'lib/rbs/environment.rb', line 19 def name @name end |