Class: Array

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

Instance Method Summary collapse

Instance Method Details

#to_jsonObject



93
94
95
96
97
# File 'lib/endpoint_stub.rb', line 93

def to_json
  '['+map do |e| 
    e.respond_to?(:to_json) ? e.to_json : e.to_s 
  end.join(', ')+']'
end