Class: Crashdesk::Reporters::Stderr
- Inherits:
-
Object
- Object
- Crashdesk::Reporters::Stderr
- Defined in:
- lib/crashdesk/reporters/stderr.rb
Instance Method Summary collapse
-
#initialize(params = nil) ⇒ Stderr
constructor
A new instance of Stderr.
- #run(crashlog) ⇒ Object
Constructor Details
#initialize(params = nil) ⇒ Stderr
Returns a new instance of Stderr.
5 6 7 |
# File 'lib/crashdesk/reporters/stderr.rb', line 5 def initialize(params = nil) $stderr.puts "Stderr initialized with: #{params}" end |
Instance Method Details
#run(crashlog) ⇒ Object
9 10 11 12 |
# File 'lib/crashdesk/reporters/stderr.rb', line 9 def run(crashlog) require 'pp' $stderr.puts "Stderr initialized with: #{pp(crashlog.to_hash)}" end |