123456789_123456789_123456789_123456789_123456789_

Class: RBS::AST::Declarations::ClassAlias

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, AliasDecl, Base
Instance Chain:
self, AliasDecl, Base
Inherits: RBS::AST::Declarations::AliasDecl
Defined in: lib/rbs/ast/declarations.rb

Class Method Summary

AliasDecl - Inherited

Instance Attribute Summary

Instance Method Summary

Constructor Details

This class inherits a constructor from RBS::AST::Declarations::AliasDecl

Instance Method Details

#to_json(state = _ = nil)

[ GitHub ]

  
# File 'lib/rbs/ast/declarations.rb', line 443

def to_json(state = _ = nil)
  {
    declaration: :class_alias,
    new_name: new_name,
    old_name: old_name,
    location: location,
    comment: comment
  }.to_json(state)
end