lib/tw/client/tweet.rb in tw-0.2.6 vs lib/tw/client/tweet.rb in tw-0.3.0

- old
+ new

@@ -16,10 +16,18 @@ :text => @text, :time => @time }.to_json(*a) end - def to_s(format) - self.instance_eval "\"#{format}\"" + def url + "http://twitter.com/#{user}/status/#{id}" + end + + def to_s + "@#{user} #{text} - #{time} #{url}" + end + + def format(fmt) + self.instance_eval "\"#{fmt}\"" end end end