Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/endpoint_stub.rb
Instance Method Summary collapse
Instance Method Details
#to_json ⇒ Object
82 83 84 85 86 |
# File 'lib/endpoint_stub.rb', line 82 def to_json '['+map do |e| e.respond_to?(:to_json) ? e.to_json : e.to_s end.join(', ')+']' end |