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