Class: RBS::AST::Members::Alias
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Base
|
|
Instance Chain:
self,
Base
|
|
Inherits: |
RBS::AST::Members::Base
|
Defined in: | lib/rbs/ast/members.rb |
Class Method Summary
Instance Attribute Summary
- #annotations readonly
- #comment readonly
- #instance? ⇒ Boolean readonly
- #kind readonly
- #location readonly
- #new_name readonly
- #old_name readonly
- #singleton? ⇒ Boolean readonly
Instance Method Summary
- #==(other) (also: #eql?)
-
#eql?(other)
Alias
for #==. - #hash
- #to_json(state = _ = nil)
Constructor Details
.new(new_name:, old_name:, kind:, annotations:, location:, comment:) ⇒ Alias
Instance Attribute Details
#annotations (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 352
attr_reader :annotations
#comment (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 354
attr_reader :comment
#instance? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/rbs/ast/members.rb', line 390
def instance? kind == :instance end
#kind (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 351
attr_reader :kind
#location (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 353
attr_reader :location
#new_name (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 349
attr_reader :new_name
#old_name (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 350
attr_reader :old_name
#singleton? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/rbs/ast/members.rb', line 394
def singleton? kind == :singleton end
Instance Method Details
#==(other) Also known as: #eql?
[ GitHub ]#eql?(other)
Alias
for #==.
# File 'lib/rbs/ast/members.rb', line 372
alias eql? ==