Module: Htmless::Pool::Helper

Defined in:
lib/htmless/pool.rb

Instance Method Summary collapse

Instance Method Details

#release ⇒ Object



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

def release
  @_origin.release self
end

#to_html! ⇒ String

Returns 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