Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/endpoint_stub.rb
Instance Method Summary collapse
Instance Method Details
#to_json ⇒ Object
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 |