Module: Titlify::StringExtensions
- Included in:
- String
- Defined in:
- lib/titlify/string_extensions.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/titlify/string_extensions.rb', line 6 def self.included(base) Titlify.methods(false).each do |method| eval("def #{method}(*args, &block); Titlify.#{method}(self, *args, &block); end") eval("def #{method}!(*args, &block); replace Titlify.#{method}(self, *args, &block); end") end end |