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 401
attr_reader :annotations
#comment (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 403
attr_reader :comment
#instance? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/rbs/ast/members.rb', line 439
def instance? kind == :instance end
#kind (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 400
attr_reader :kind
#location (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 402
attr_reader :location
#new_name (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 398
attr_reader :new_name
#old_name (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 399
attr_reader :old_name
#singleton? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/rbs/ast/members.rb', line 443
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 421
alias eql? ==