Class: RBS::AST::Declarations::Constant
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
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:) ⇒ Constant
Instance Attribute Details
#comment (readonly)
[ GitHub ]# File 'lib/rbs/ast/declarations.rb', line 315
attr_reader :comment
#location (readonly)
[ GitHub ]# File 'lib/rbs/ast/declarations.rb', line 314
attr_reader :location
#name (readonly)
[ GitHub ]# File 'lib/rbs/ast/declarations.rb', line 312
attr_reader :name
#type (readonly)
[ GitHub ]# File 'lib/rbs/ast/declarations.rb', line 313
attr_reader :type
Instance Method Details
#==(other) Also known as: #eql?
[ GitHub ]#eql?(other)
Alias for #==.
# File 'lib/rbs/ast/declarations.rb', line 330
alias eql? ==