Class: Parlour::Types::Set

Inherits:
SingleElementCollection show all
Defined in:
lib/parlour/types.rb

Overview

A set with known element types.

Instance Attribute Summary

Attributes inherited from SingleElementCollection

#element

Instance Method Summary collapse

Methods inherited from SingleElementCollection

#describe, #generate_rbi, #generate_rbs, #initialize

Methods inherited from Type

#describe, #generate_rbi, #generate_rbs, #hash, #to_type, to_type

Constructor Details

This class inherits a constructor from Parlour::Types::SingleElementCollection

Instance Method Details

#==(other) ⇒ Object



289
290
291
# File 'lib/parlour/types.rb', line 289

def ==(other)
  Set === other && element == other.element
end

#collection_nameObject



284
285
286
# File 'lib/parlour/types.rb', line 284

def collection_name
  'Set'
end