Class: RBS::Definition::SingletonAncestors

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type_name:, ancestors:) ⇒ SingletonAncestors

Returns a new instance of SingletonAncestors.



252
253
254
255
# File 'lib/rbs/definition.rb', line 252

def initialize(type_name:, ancestors:)
  @type_name = type_name
  @ancestors = ancestors
end

Instance Attribute Details

#ancestorsObject (readonly)

Returns the value of attribute ancestors.



250
251
252
# File 'lib/rbs/definition.rb', line 250

def ancestors
  @ancestors
end

#type_nameObject (readonly)

Returns the value of attribute type_name.



249
250
251
# File 'lib/rbs/definition.rb', line 249

def type_name
  @type_name
end