Class: Pebbles::TotsuGen::Formatter

Inherits:
Object
  • Object
show all
Defined in:
lib/pebbles/totsugen/formatters.rb

Direct Known Subclasses

OriginFormatter, SimplifiedFormatter

Instance Method Summary collapse

Constructor Details

#initialize(body) ⇒ Formatter

Returns a new instance of Formatter.



7
8
9
# File 'lib/pebbles/totsugen/formatters.rb', line 7

def initialize(body)
  @body = body
end

Instance Method Details

#resultObject



11
12
13
# File 'lib/pebbles/totsugen/formatters.rb', line 11

def result
  "#{header}\n#{center}\n#{footer}"
end