Class: Object

Inherits:
BasicObject
Defined in:
lib/ext/object.rb

Instance Method Summary collapse

Instance Method Details

#to_html(embedded) ⇒ Object



2
3
4
5
6
7
8
9
# File 'lib/ext/object.rb', line 2

def to_html(embedded)
  str = to_s
  if str[-1] == "\n"
    str
  else
    str << "\n"
  end
end