lib/acts_as_hourable/extensions.rb
# Stolen from rake -- This seemed like a really nice way to do it
Stolen from rake -- This seemed like a really nice way to do it
Stolen from rake -- This seemed like a really nice way to do it
def acts_as_hourable_loud_extension(method)
    if instance_methods.include?(method.to_s) || instance_methods.include?(method.to_sym)
      $stderr.puts "WARNING: Possible conflict with acts_as_hourable extension: #{self}##{method} already exists"
    else
      yield
    end
  end
def acts_as_hourable_loud_extension ( method ) if instance_methods . include? ( method . to_s ) || instance_methods . include? ( method . to_sym ) $stderr . puts "WARNING: Possible conflict with acts_as_hourable extension: #{self}##{method} already exists" else yield end end
Stolen from rake -- This seemed like a really nice way to do it
Stolen from rake -- This seemed like a really nice way to do it
method
<not_specific>