Class: Mocha::Deprecation
Class Attribute Summary collapse
-
.messages ⇒ Object
Returns the value of attribute messages.
-
.mode ⇒ Object
Returns the value of attribute mode.
Class Method Summary collapse
Class Attribute Details
.messages ⇒ Object
Returns the value of attribute messages.
7 8 9 |
# File 'lib/mocha/deprecation.rb', line 7 def @messages end |
.mode ⇒ Object
Returns the value of attribute mode.
7 8 9 |
# File 'lib/mocha/deprecation.rb', line 7 def mode @mode end |
Class Method Details
.warning(message) ⇒ Object
9 10 11 12 13 |
# File 'lib/mocha/deprecation.rb', line 9 def warning() @messages << $stderr.puts "Mocha deprecation warning: #{}" unless mode == :disabled $stderr.puts caller.join("\n ") if mode == :debug end |