[フレーム]

Class: Template::OutputBuffer

Inherits:
Object
  • Object
  • Template::OutputBuffer
show all
Defined in:
opal/stdlib/template.rb

Instance Method Summary collapse

Constructor Details

#initializeOutputBuffer

Returns a new instance of OutputBuffer

31
32
33
# File 'opal/stdlib/template.rb', line 31
def initialize
 @buffer = []
end

Instance Method Details

#append(str) ⇒ Object Also known as: append=

35
36
37
# File 'opal/stdlib/template.rb', line 35
def append(str)
 @buffer << str
end

#joinObject

41
42
43
# File 'opal/stdlib/template.rb', line 41
def join
 @buffer.join
end

AltStyle によって変換されたページ (->オリジナル) /