static public Method

Logger.define_around_helper(level)

There's no documentation for this item.

Source Code

# File active_support/core_ext/logger.rb, line 4
def self.define_around_helper(level)
  module_eval "def around_\#{level}(before_message, after_message, &block)\nself.\#{level}(before_message)\nreturn_value = block.call(self)\nself.\#{level}(after_message)\nreturn return_value\nend\n"
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.