# File lib/twitter/ext/stdlib.rb, line 11 def to_http_str result = '' return result if self.empty? self.each do |key, val| result << "#{key}=#{URI.encode(val.to_s)}&" end result.chop # remove the last '&' character, since it can be discarded end