Class: Lumberjack::Formatter::StripFormatter
- Inherits:
-
Object
- Object
- Lumberjack::Formatter::StripFormatter
- Defined in:
- lib/lumberjack/formatter/strip_formatter.rb
Overview
Format an object by calling ‘to_s` on it and stripping leading and trailing whitespace.
Instance Method Summary collapse
Instance Method Details
#call(obj) ⇒ Object
7 8 9 |
# File 'lib/lumberjack/formatter/strip_formatter.rb', line 7 def call(obj) obj.to_s.strip end |