Class: RBS::Constant
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/rbs/constant.rb |
Class Method Summary
- .new(name:, type:, entry:) ⇒ Constant constructor
Instance Attribute Summary
Instance Method Summary
- #==(other) (also: #eql?)
-
#eql?(other)
Alias for #==.
- #hash
Constructor Details
.new(name:, type:, entry:) ⇒ Constant
Instance Attribute Details
#entry (readonly)
[ GitHub ]# File 'lib/rbs/constant.rb', line 7
attr_reader :entry
#name (readonly)
[ GitHub ]# File 'lib/rbs/constant.rb', line 5
attr_reader :name
#type (readonly)
[ GitHub ]# File 'lib/rbs/constant.rb', line 6
attr_reader :type
Instance Method Details
#==(other) Also known as: #eql?
[ GitHub ]#eql?(other)
Alias for #==.
# File 'lib/rbs/constant.rb', line 22
alias eql? ==