Class: Pebbles::TotsuGen::Formatter
- Inherits:
-
Object
- Object
- Pebbles::TotsuGen::Formatter
- Defined in:
- lib/pebbles/totsugen/formatters.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(body) ⇒ Formatter
constructor
A new instance of Formatter.
- #result ⇒ Object
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
#result ⇒ Object
11 12 13 |
# File 'lib/pebbles/totsugen/formatters.rb', line 11 def result "#{header}\n#{center}\n#{}" end |