Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/sketchup_json/generator.rb

Instance Method Summary collapse

Instance Method Details

#to_jsonObject



40
41
42
43
# File 'lib/sketchup_json/generator.rb', line 40

def to_json
  values = collect { |item| item.to_json }
  "[#{ values.join(", ") }]"
end