Class: Scheming::Type::Array
Overview
Array Type Definition
Type wrapper which describes an array of zero or more of the provided type.
Instance Attribute Summary collapse
- #type ⇒ Scheming::Type::Base readonly
Instance Method Summary collapse
-
#initialize(type) ⇒ Array
constructor
A new instance of Array.
Constructor Details
#initialize(type) ⇒ Array
Returns a new instance of Array.
82 83 84 85 86 |
# File 'lib/scheming/type.rb', line 82 def initialize(type) super() @type = type freeze end |
Instance Attribute Details
#type ⇒ Scheming::Type::Base (readonly)
79 80 81 |
# File 'lib/scheming/type.rb', line 79 def type @type end |