Module: Net::PersistentReadAdapter

Defined in:
lib/ephemeral_response/net_http.rb

Instance Method Summary collapse

Instance Method Details

#<<(str) ⇒ Object



38
39
40
41
# File 'lib/ephemeral_response/net_http.rb', line 38

def <<(str)
  _buffer << str
  super
end

#_bufferObject



34
35
36
# File 'lib/ephemeral_response/net_http.rb', line 34

def _buffer
  @_buffer ||= ""
end

#to_sObject



47
48
49
# File 'lib/ephemeral_response/net_http.rb', line 47

def to_s
  _buffer
end

#to_yaml(opts = {}) ⇒ Object



43
44
45
# File 'lib/ephemeral_response/net_http.rb', line 43

def to_yaml(opts = {})
  _buffer.to_yaml opts
end