class DictClient::SimpleResponse
Public Class Methods
new(lines)
click to toggle source
# File lib/dict_client/responses.rb, line 12 def initialize lines lines.each do |line| process_line line end end
Public Instance Methods
to_s()
click to toggle source
# File lib/dict_client/responses.rb, line 18 def to_s @response end
Private Instance Methods
process_line(line)
click to toggle source
# File lib/dict_client/responses.rb, line 24 def process_line line @response ||= '' @response << line end