Class: RBS::Definition::SingletonAncestors
- Inherits:
-
Object
- Object
- RBS::Definition::SingletonAncestors
- Defined in:
- lib/rbs/definition.rb
Instance Attribute Summary collapse
-
#ancestors ⇒ Object
readonly
Returns the value of attribute ancestors.
-
#type_name ⇒ Object
readonly
Returns the value of attribute type_name.
Instance Method Summary collapse
-
#initialize(type_name:, ancestors:) ⇒ SingletonAncestors
constructor
A new instance of SingletonAncestors.
Constructor Details
#initialize(type_name:, ancestors:) ⇒ SingletonAncestors
Returns a new instance of SingletonAncestors.
182 183 184 185 |
# File 'lib/rbs/definition.rb', line 182 def initialize(type_name:, ancestors:) @type_name = type_name @ancestors = ancestors end |
Instance Attribute Details
#ancestors ⇒ Object (readonly)
Returns the value of attribute ancestors.
180 181 182 |
# File 'lib/rbs/definition.rb', line 180 def ancestors @ancestors end |
#type_name ⇒ Object (readonly)
Returns the value of attribute type_name.
179 180 181 |
# File 'lib/rbs/definition.rb', line 179 def type_name @type_name end |