Class: Fcoin::Formatter
- Inherits:
-
Object
- Object
- Fcoin::Formatter
- Defined in:
- lib/fcoin/formatter.rb
Instance Method Summary collapse
-
#formatted_body ⇒ Object
Format body.
-
#initialize(body) ⇒ Formatter
constructor
A new instance of Formatter.
Constructor Details
#initialize(body) ⇒ Formatter
Returns a new instance of Formatter.
6 7 8 |
# File 'lib/fcoin/formatter.rb', line 6 def initialize(body) self.body = body end |
Instance Method Details
#formatted_body ⇒ Object
Format body
11 12 13 |
# File 'lib/fcoin/formatter.rb', line 11 def formatted_body formatter.present? ? formatter.formatted_body : body end |