Class: Babl::Schema::FixedArray

Inherits:
Object
  • Object
show all
Defined in:
lib/babl/schema/fixed_array.rb

Constant Summary collapse

EMPTY =
new([])

Instance Method Summary collapse

Instance Method Details

#jsonObject



9
10
11
# File 'lib/babl/schema/fixed_array.rb', line 9

def json
    { type: 'array', items: items.map(&:json) }
end