lib/ids_please/livejournal.rb in ids_please-1.1.0 vs lib/ids_please/livejournal.rb in ids_please-1.1.1
- old
+ new
@@ -1,16 +1,18 @@
class IdsPlease
class Livejournal < IdsPlease::BaseParser
MASK = /livejournal/i
- private
+ class << self
+ private
- def self.parse_link(link)
- parsed = link.host.sub('.livejournal.com', '')
- parsed = link.host.split('.livejournal').first if parsed == link.host
- return if parsed == link.host
- parsed
+ def parse_link(link)
+ parsed = link.host.sub('.livejournal.com', '')
+ parsed = link.host.split('.livejournal').first if parsed == link.host
+ return if parsed == link.host
+ parsed
+ end
end
end
end