class MyLogSubscriber

Attributes

event[R]

Public Instance Methods

bar(event) click to toggle source
# File activesupport/test/log_subscriber_test.rb, line 20
def bar(event)
  info "#{color("cool", :red)}, #{color("isn't it?", :blue, true)}"
end
foo(event) click to toggle source
# File activesupport/test/log_subscriber_test.rb, line 14
def foo(event)
  debug "debug"
  info { "info" }
  warn "warn"
end
puke(event) click to toggle source
# File activesupport/test/log_subscriber_test.rb, line 24
def puke(event)
  raise "puke"
end
some_event(event) click to toggle source
# File activesupport/test/log_subscriber_test.rb, line 9
def some_event(event)
  @event = event
  info event.name
end