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)  
    
    Aliasfor #==.
- #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 367
attr_reader :annotations
#comment (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 369
attr_reader :comment
    #instance?  ⇒ Boolean  (readonly)
  
  [ GitHub ]
# File 'lib/rbs/ast/members.rb', line 405
def instance? kind == :instance end
#kind (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 366
attr_reader :kind
#location (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 368
attr_reader :location
#new_name (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 364
attr_reader :new_name
#old_name (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 365
attr_reader :old_name
    #singleton?  ⇒ Boolean  (readonly)
  
  [ GitHub ]
# File 'lib/rbs/ast/members.rb', line 409
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 387
alias eql? ==