Class: NString

Inherits:
GformatString show all
Defined in:
lib/models/gformat_string.rb

Instance Method Summary collapse

Methods inherited from GformatString

#to_html_format

Instance Method Details

#formatObject



22
23
24
# File 'lib/models/gformat_string.rb', line 22

def format
  return self.gsub("\n", "<br/>\n\r").gsub("\t", "&nbsp;&nbsp;")
end