module Sterile::StringExtensions
Public Class Methods
included(base)
click to toggle source
# 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