Class: Lifer::URIStrategy
- Inherits:
-
Object
- Object
- Lifer::URIStrategy
- Defined in:
- lib/lifer/uri_strategy.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.find_by_name(name) ⇒ Object
3 4 5 6 7 |
# File 'lib/lifer/uri_strategy.rb', line 3 def find_by_name(name) self.const_get name.capitalize rescue NameError => error raise StandardError, "no URI strategy '#{name}'" end |