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