Class: Fcoin::Formatter

Inherits:
Object
  • Object
show all
Defined in:
lib/fcoin/formatter.rb

Instance Method Summary collapse

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_bodyObject

Format body



11
12
13
# File 'lib/fcoin/formatter.rb', line 11

def formatted_body
  formatter.present? ? formatter.formatted_body : body
end