Class: Parlour::Types::Range
- Inherits:
-
SingleElementCollection
- Object
- Type
- SingleElementCollection
- Parlour::Types::Range
- Defined in:
- lib/parlour/types.rb
Overview
A range 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
302 303 304 |
# File 'lib/parlour/types.rb', line 302 def ==(other) Range === other && element == other.element end |
#collection_name ⇒ Object
297 298 299 |
# File 'lib/parlour/types.rb', line 297 def collection_name 'Range' end |