Class: Parlour::Types::Enumerator
- Inherits:
-
SingleElementCollection
- Object
- Type
- SingleElementCollection
- Parlour::Types::Enumerator
- Defined in:
- lib/parlour/types.rb
Overview
An enumerator with known element types.
Instance Attribute Summary
Attributes inherited from SingleElementCollection
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
328 329 330 |
# File 'lib/parlour/types.rb', line 328 def ==(other) Enumerator === other && element == other.element end |
#collection_name ⇒ Object
323 324 325 |
# File 'lib/parlour/types.rb', line 323 def collection_name 'Enumerator' end |