Class: RBS::AST::Declarations::Global
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Base
|
|
Instance Chain:
self,
Base
|
|
Inherits: |
RBS::AST::Declarations::Base
|
Defined in: | lib/rbs/ast/declarations.rb |
Class Method Summary
- .new(name:, type:, location:, comment:) ⇒ Global constructor
Instance Attribute Summary
Instance Method Summary
- #==(other) (also: #eql?)
-
#eql?(other)
Alias for #==.
- #hash
- #to_json(state = _ = nil)
Constructor Details
.new(name:, type:, location:, comment:) ⇒ Global
Instance Attribute Details
#comment (readonly)
[ GitHub ]# File 'lib/rbs/ast/declarations.rb', line 351
attr_reader :comment
#location (readonly)
[ GitHub ]# File 'lib/rbs/ast/declarations.rb', line 350
attr_reader :location
#name (readonly)
[ GitHub ]# File 'lib/rbs/ast/declarations.rb', line 348
attr_reader :name
#type (readonly)
[ GitHub ]# File 'lib/rbs/ast/declarations.rb', line 349
attr_reader :type
Instance Method Details
#==(other) Also known as: #eql?
[ GitHub ]#eql?(other)
Alias for #==.
# File 'lib/rbs/ast/declarations.rb', line 366
alias eql? ==