Class: JSON::Generator::ArrayAttribute
- Inherits:
-
BasicAttribute
- Object
- BasicAttribute
- JSON::Generator::ArrayAttribute
- Defined in:
- lib/json/generator/array_attribute.rb
Instance Method Summary collapse
Methods inherited from BasicAttribute
Constructor Details
This class inherits a constructor from JSON::Generator::BasicAttribute
Instance Method Details
#generate ⇒ Object
4 5 6 7 8 |
# File 'lib/json/generator/array_attribute.rb', line 4 def generate (@attributes['minItems'] || 0).times.map do |index| AttributeFactory.create(@attributes['items']).generate end end |