lib/page_rankr.rb in PageRankr-1.1.0 vs lib/page_rankr.rb in PageRankr-1.2.0

- old
+ new

@@ -6,12 +6,15 @@ module PageRankr class << self def backlinks(site, *search_engines) Backlinks.lookup site, *search_engines end + alias_method :backlink, :backlinks def ranks(site, *rank_trackers) + rank_trackers = [:google, :alexa] if rank_trackers.empty? + ranks = {} rank_trackers.each do |tracker| case tracker when :google ranks[tracker] = Google.lookup(site) @@ -19,7 +22,8 @@ ranks[tracker] = Alexa.lookup(site) end end ranks end + alias_method :rank, :ranks end end \ No newline at end of file