Class: Scheming::Type::Array

Inherits:
Base
  • Object
show all
Defined in:
lib/scheming/type.rb

Overview

Array Type Definition

Type wrapper which describes an array of zero or more of the provided type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ Array

Returns a new instance of Array.

Parameters:



82
83
84
85
86
# File 'lib/scheming/type.rb', line 82

def initialize(type)
  super()
  @type = type
  freeze
end

Instance Attribute Details

#typeScheming::Type::Base (readonly)



79
80
81
# File 'lib/scheming/type.rb', line 79

def type
  @type
end