Class: RBS::Types::ClassSingleton
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:) ⇒ ClassSingleton constructor
Instance Attribute Summary
- #has_classish_type? ⇒ Boolean readonly
- #has_self_type? ⇒ Boolean readonly
- #location readonly
- #name readonly
- #with_nonreturn_void? ⇒ Boolean readonly
Instance Method Summary
- #==(other) (also: #eql?)
- #eql?(other)
- #hash
- #map_type_name
- #to_json(state = _ = nil)
- #to_s(level = 0)
EmptyEachType
- Included
NoSubst
- Included
NoFreeVariables
- Included
Constructor Details
.new(name:, location:) ⇒ ClassSingleton
Instance Attribute Details
#has_classish_type? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/rbs/types.rb', line 243
def has_classish_type? false end
#has_self_type? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/rbs/types.rb', line 239
def has_self_type? false end
#location (readonly)
[ GitHub ]# File 'lib/rbs/types.rb', line 202
attr_reader :location
#name (readonly)
[ GitHub ]# File 'lib/rbs/types.rb', line 201
attr_reader :name
#with_nonreturn_void? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/rbs/types.rb', line 247
def with_nonreturn_void? false end
Instance Method Details
#==(other) Also known as: #eql?
[ GitHub ]#eql?(other)
[ GitHub ]# File 'lib/rbs/types.rb', line 213
alias eql? ==
#hash
[ GitHub ]# File 'lib/rbs/types.rb', line 215
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 226
def to_s(level = 0) "singleton(#{name})" end