Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/sketchup_json/generator.rb
Instance Method Summary collapse
Instance Method Details
#to_json ⇒ Object
40 41 42 43 |
# File 'lib/sketchup_json/generator.rb', line 40 def to_json values = collect { |item| item.to_json } "[#{ values.join(", ") }]" end |