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 523
attr_reader :location
#types (readonly)
[ GitHub ]# File 'lib/rbs/types.rb', line 522
attr_reader :types
Instance Method Details
#==(other) Also known as: #eql?
[ GitHub ]#each_type(&block)
[ GitHub ]# File 'lib/rbs/types.rb', line 565
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 534
alias eql? ==
#free_variables(set = Set.new)
[ GitHub ]#hash
[ GitHub ]# File 'lib/rbs/types.rb', line 536
def hash self.class.hash ^ types.hash end