Class: ZRB::HTMLBuffer
Instance Method Summary collapse
Methods inherited from Buffer
Instance Method Details
#escape(other) ⇒ Object
187 188 189 190 191 192 193 |
# File 'lib/zrb.rb', line 187 def escape(other) if other.respond_to?(:to_html) other.to_html else CGI.escape_html(other.to_s) end end |
#to_html ⇒ Object
185 |
# File 'lib/zrb.rb', line 185 def to_html; self end |