Class: Parlour::Types::Array

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

Overview

An array 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



276
277
278
# File 'lib/parlour/types.rb', line 276

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

#collection_nameObject



271
272
273
# File 'lib/parlour/types.rb', line 271

def collection_name
  'Array'
end