Class: Tagz::Buffer::Base
- Inherits:
-
Object
- Object
- Tagz::Buffer::Base
- Defined in:
- lib/tagz/buffer.rb
Overview
:stopdoc:
Instance Method Summary collapse
- #create_tag(*args, &block) ⇒ Object
-
#initialize ⇒ Base
constructor
A new instance of Base.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Base
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_s ⇒ Object
35 36 37 |
# File 'lib/tagz/buffer.rb', line 35 def to_s @buffer end |