Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/mango/core_ext/string.rb
Overview
Extentions to the core String
class
Instance Method Summary collapse
-
#templatize ⇒ Symbol
Convert a file name to a Sinatra-compliant template name.
Instance Method Details
#templatize ⇒ Symbol
Convert a file name to a Sinatra-compliant template name
14 15 16 |
# File 'lib/mango/core_ext/string.rb', line 14 def templatize self.rpartition(".").shift.to_sym end |