Class: HtmlBeautifier::Builder
- Inherits:
-
Object
- Object
- HtmlBeautifier::Builder
- Defined in:
- lib/htmlbeautifier/builder.rb
Constant Summary collapse
- DEFAULT_OPTIONS =
{ indent: " ", initial_level: 0, stop_on_errors: false, keep_blank_lines: 0 }.freeze
Instance Method Summary collapse
-
#initialize(output, options = {}) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(output, options = {}) ⇒ Builder
Returns a new instance of Builder.
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/htmlbeautifier/builder.rb', line 15 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 @embedded_indenter = RubyIndenter.new end |