Class: RBS::Types::Union
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/rbs/types.rb |
Class Method Summary
- .new(types:, location:) ⇒ Union constructor
Instance Attribute Summary
Instance Method Summary
Constructor Details
.new(types:, location:) ⇒ Union
Instance Attribute Details
#location (readonly)
[ GitHub ]# File 'lib/rbs/types.rb', line 589
attr_reader :location
#types (readonly)
[ GitHub ]# File 'lib/rbs/types.rb', line 588
attr_reader :types
Instance Method Details
#==(other) Also known as: #eql?
[ GitHub ]#each_type(&block)
[ GitHub ]# File 'lib/rbs/types.rb', line 631
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 600
alias eql? ==
#free_variables(set = Set.new)
[ GitHub ]#hash
[ GitHub ]# File 'lib/rbs/types.rb', line 602
def hash self.class.hash ^ types.hash end