Class: Hacker
- Inherits:
-
Object
- Object
- Hacker
- Defined in:
- lib/hackersays.rb
Class Method Summary collapse
Class Method Details
.said ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/hackersays.rb', line 6 def self.said quote_url = "http://hackersays.com/quote" quote = JSON::load(open(quote_url).read()) comment = quote["c"] = quote["a"] || "Some hacker" "#{comment} ~ #{}" end |