Class: ImageString

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



34
35
36
# File 'lib/models/gformat_string.rb', line 34

def format
  return self.gsub(/\[img(:*.*)\](.+?)\[\/img\]/,'<img style="float\1" src="\2">')
end