Method: Kwaff::KwaffTranslator#initialize
- Defined in:
- lib/kwaff/translator.rb
#initialize(toppings = {}) ⇒ KwaffTranslator
Returns a new instance of KwaffTranslator.
182 183 184 185 186 187 188 |
# File 'lib/kwaff/translator.rb', line 182 def initialize(toppings={}) super(toppings) @toppings = toppings @space = toppings[:indent_width] || ' ' @newline = toppings[:newline] || "\n" @output = '' end |