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 464
attr_reader :location
#type (readonly)
[ GitHub ]# File 'lib/rbs/types.rb', line 463
attr_reader :type
Instance Method Details
#==(other) Also known as: #eql?
[ GitHub ]#each_type
[ GitHub ]# File 'lib/rbs/types.rb', line 505
def each_type if block_given? yield type else enum_for :each_type end end
#eql?(other)
[ GitHub ]# File 'lib/rbs/types.rb', line 475
alias eql? ==
#free_variables(set = Set.new)
[ GitHub ]#hash
[ GitHub ]# File 'lib/rbs/types.rb', line 477
def hash self.class.hash ^ type.hash end