Class: RBS::Types::Tuple
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/rbs/types.rb |
Class Method Summary
- .new(types:, location:) ⇒ Tuple constructor
Instance Attribute Summary
Instance Method Summary
Constructor Details
.new(types:, location:) ⇒ Tuple
Instance Attribute Details
#location (readonly)
[ GitHub ]# File 'lib/rbs/types.rb', line 372
attr_reader :location
#types (readonly)
[ GitHub ]# File 'lib/rbs/types.rb', line 371
attr_reader :types
Instance Method Details
#==(other) Also known as: #eql?
[ GitHub ]#each_type(&block)
[ GitHub ]# File 'lib/rbs/types.rb', line 414
def each_type(&block) if block types.each(&block) else enum_for :each_type end end
#eql?(other)
[ GitHub ]# File 'lib/rbs/types.rb', line 383
alias eql? ==
#free_variables(set = Set.new)
[ GitHub ]#hash
[ GitHub ]# File 'lib/rbs/types.rb', line 385
def hash self.class.hash ^ types.hash end