class method
self.define_around_helper
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
self.define_around_helper(level)
No documentation comment.
Parameters
-
levelreq
Source
# File activesupport/lib/active_support/core_ext/logger.rb, line 4
def self.define_around_helper(level)
module_eval <<-end_eval
def around_#{level}(before_message, after_message, &block)
self.#{level}(before_message)
return_value = block.call(self)
self.#{level}(after_message)
return return_value
end
end_eval
end
Defined in activesupport/lib/active_support/core_ext/logger.rb line 4
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Logger