lib/ids_please/tumblr.rb in ids_please-0.0.3 vs lib/ids_please/tumblr.rb in ids_please-1.0.0
- old
+ new
@@ -1,16 +1,18 @@
-class IdsPlease::Tumblr < IdsPlease::BaseParser
+class IdsPlease
+ class Tumblr < IdsPlease::BaseParser
- MASK = /tumblr/i
+ MASK = /tumblr/i
- def self.parse(links)
- links.map do |link|
- next if link.host.sub('.tumblr.com', '') == link.host
- parse_link(link)
- end.compact
- end
+ def self.parse(links)
+ links.map do |link|
+ next if link.host.sub('.tumblr.com', '') == link.host
+ parse_link(link)
+ end.compact
+ end
- def self.parse_link(link)
- link.host.sub('.tumblr.com', '')
- end
+ def self.parse_link(link)
+ link.host.sub('.tumblr.com', '')
+ end
+ end
end