aitor (owner)

Revisions

gist: 8002 Download_button fork
public
Public Clone URL: git://gist.github.com/8002.git
Embed All Files: show embed
Text #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'net/http'
class Object
  def method_missing(methId)
    suggestion = Net::HTTP.get('search.yahooapis.com', "/WebSearchService/V1/spellingSuggestion?appid=YahooDemo&query=#{methId.to_s}")
    method = /<Result>(.*)<\/Result>/.match(suggestion)
    if method
      puts "#{method[1]} bloody bastard, is ****#{method[1].upcase}****, not #{methId}... read the fucking docs!!!"
      self.send method[1]
    else
      puts "what the hell '#{methId}' is bloody bastard?... read the fucking docs!!!"
      super
    end
  end
end
puts [:endless_love].inspectt