Class: RBS::Types::Optional
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/rbs/types.rb |
Class Method Summary
- .new(type:, location:) ⇒ Optional constructor
Instance Attribute Summary
Instance Method Summary
Constructor Details
.new(type:, location:) ⇒ Optional
Instance Attribute Details
#location (readonly)
[ GitHub ]# File 'lib/rbs/types.rb', line 519
attr_reader :location
#type (readonly)
[ GitHub ]# File 'lib/rbs/types.rb', line 518
attr_reader :type
Instance Method Details
#==(other) Also known as: #eql?
[ GitHub ]#each_type
[ GitHub ]# File 'lib/rbs/types.rb', line 560
def each_type if block_given? yield type else enum_for :each_type end end
#eql?(other)
[ GitHub ]# File 'lib/rbs/types.rb', line 530
alias eql? ==
#free_variables(set = Set.new)
[ GitHub ]#hash
[ GitHub ]# File 'lib/rbs/types.rb', line 532
def hash self.class.hash ^ type.hash end