Class: Twroute::Routes::Collector

Inherits:
Object
  • Object
show all
Defined in:
lib/twroute/routes.rb

Class Method Summary collapse

Class Method Details

.regex(regex_hash, url_pattern) ⇒ Object



18
19
20
21
22
# File 'lib/twroute/routes.rb', line 18

def self.regex(regex_hash, url_pattern)
  Routes.append_route(
                      TweetRoute.new(Parser::Regex.new(regex_hash),
                                     url_pattern))
end