Class: Tagz::Buffer::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/tagz/buffer.rb

Overview

:stopdoc:

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



27
28
29
# File 'lib/tagz/buffer.rb', line 27

def initialize
  @buffer = ''
end

Instance Method Details

#create_tag(*args, &block) ⇒ Object



31
32
33
# File 'lib/tagz/buffer.rb', line 31

def create_tag *args, &block
  @buffer << Buffer.create_tag(*args, &block)
end

#to_sObject



35
36
37
# File 'lib/tagz/buffer.rb', line 35

def to_s
  @buffer
end