Class: RBS::Types::Alias
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
|
|
Inherits: | Object |
Defined in: | lib/rbs/types.rb |
Class Method Summary
- .new(name:, location:) ⇒ Alias constructor
Instance Attribute Summary
Instance Method Summary
- #==(other) (also: #eql?)
-
#eql?(other)
Alias
for #==. - #hash
- #map_type_name
- #to_json(state = _ = nil)
- #to_s(level = 0)
EmptyEachType
- Included
NoSubst
- Included
NoFreeVariables
- Included
Constructor Details
.new(name:, location:) ⇒ Alias
Instance Attribute Details
#location (readonly)
[ GitHub ]# File 'lib/rbs/types.rb', line 298
attr_reader :location
#name (readonly)
[ GitHub ]# File 'lib/rbs/types.rb', line 299
attr_reader :name
Instance Method Details
#==(other) Also known as: #eql?
[ GitHub ]#eql?(other)
Alias
for #==.
# File 'lib/rbs/types.rb', line 310
alias eql? ==
#hash
[ GitHub ]# File 'lib/rbs/types.rb', line 312
def hash self.class.hash ^ name.hash end
#map_type_name
[ GitHub ]#to_json(state = _ = nil)
[ GitHub ]#to_s(level = 0)
[ GitHub ]# File 'lib/rbs/types.rb', line 323
def to_s(level = 0) name.to_s end