Sha256: 0998cac015f4ddb42e142cd301b97669c1142a7ccadd348186f4cc7e69096b93

Contents?: true

Size: 327 Bytes

Versions: 1

Compression:

Stored size: 327 Bytes

Contents

require "forwardable"

class HTTP::Session
  class Response < SimpleDelegator
    class StringBody
      extend Forwardable

      def_delegator :to_s, :empty?

      def initialize(contents)
        @contents = contents
      end

      def to_s
        @contents
      end
      alias_method :to_str, :to_s
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-http-session-1.0.1 lib/http/session/response/string_body.rb