Class: HtmlFormatter::Builder
- Inherits:
-
Object
- Object
- HtmlFormatter::Builder
- Defined in:
- lib/htmlformatter/builder.rb
Constant Summary collapse
- DEFAULT_OPTIONS =
{ indent: " ", initial_level: 0, stop_on_errors: false, keep_blank_lines: 1 }
Instance Method Summary collapse
-
#initialize(output, options = {}) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(output, options = {}) ⇒ Builder
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/htmlformatter/builder.rb', line 14 def initialize(output, = {}) = DEFAULT_OPTIONS.merge() @tab = [:indent] @stop_on_errors = [:stop_on_errors] @level = [:initial_level] @keep_blank_lines = [:keep_blank_lines] @new_line = false @empty = true @ie_cc_levels = [] @output = output if [:engine] == "eex" = ElixirIndenter.new else = RubyIndenter.new end end |