Class: Wlog::Attachment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Wlog::Attachment
- Defined in:
- lib/wlog/domain/attachment.rb
Overview
OO way of handling blobs of data, to be stored in memory or in db.
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
13 14 15 16 17 18 |
# File 'lib/wlog/domain/attachment.rb', line 13 def to_s @strmaker = SysConfig.string_decorator str = '' str.concat(" [").concat(@strmaker.green(self.id)).concat("] ") str.concat(@strmaker.red(self.filename)).concat($/) str end |