Method: EZML::Buffer#initialize
- Defined in:
- lib/ezml/buffer.rb
#initialize(upper = nil, options = {}) ⇒ Buffer
Returns a new instance of Buffer.
46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/ezml/buffer.rb', line 46 def initialize(upper = nil, = {}) @active = true @upper = upper @options = Options.buffer_defaults @options = @options.merge() unless .empty? @buffer = new_encoded_string @tabulation = 0 # The number of tabs that Engine thinks we should have # @real_tabs + @tabulation is the number of tabs actually output @real_tabs = 0 end |