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