Module: Htmless::Pool::Helper

Defined in:
lib/htmless/pool.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) release



12
13
14
# File 'lib/htmless/pool.rb', line 12

def release
  @_origin.release self
end

- (String) to_html!

Output and releases the builder to pool

Returns:

  • (String)

    output and releases the builder to pool



17
18
19
20
21
# File 'lib/htmless/pool.rb', line 17

def to_html!
  to_html
ensure
  release
end