Class: JSON::Schema::Array
Instance Method Summary collapse
-
#initialize(items, **rest) ⇒ Array
constructor
A new instance of Array.
- #to_h ⇒ Object
- #to_json(options = {}) ⇒ Object
Methods inherited from Leaf
#default, #description, #enum, #required, #required?
Constructor Details
#initialize(items, **rest) ⇒ Array
Returns a new instance of Array.
5 6 7 8 |
# File 'lib/json/schema/array.rb', line 5 def initialize(items, **rest) @items = items super(**rest) end |