Sha256: 3e681af0f2b4ac7bf5de6c7e6c01e46883f1764c74969d7d8d25d40819fa41c2
Contents?: true
Size: 422 Bytes
Versions: 1
Compression:
Stored size: 422 Bytes
Contents
# -*- coding: utf-8 -*- module PryPipeline class Response def initialize(response) @response = response end def to_s case @response when Hash h = @response.to_hash h.keys.map { |key| "#{key} #{h[key]}" }.join("\n") when Array @response.to_a.join("\n") when String, Symbol @response.to_s else @response end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pry-pipeline-0.0.4 | lib/pry-pipeline/response.rb |