Class: Lumberjack::Formatter::StringFormatter
- Inherits:
-
Object
- Object
- Lumberjack::Formatter::StringFormatter
- Defined in:
- lib/lumberjack/formatter/string_formatter.rb
Overview
Format an object by calling to_s on it. This is the simplest formatter implementation and is commonly used as a fallback for objects that don’t have specialized formatters.
Instance Method Summary collapse
-
#call(obj) ⇒ String
Convert an object to its string representation.
Instance Method Details
#call(obj) ⇒ String
Convert an object to its string representation.
15 16 17 |
# File 'lib/lumberjack/formatter/string_formatter.rb', line 15 def call(obj) obj.to_s end |