Class: Boxspring::Story
- Includes:
- Taggable
- Defined in:
- lib/boxspring/story.rb
Instance Method Summary collapse
Methods included from Taggable
Methods inherited from Base
Constructor Details
This class inherits a constructor from Boxspring::Base
Instance Method Details
#content ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'lib/boxspring/story.rb', line 40 def content @_content ||= begin content_class = Boxspring.const_get( self.content_type ) \ rescue nil content_class ? content_class.new( self.attributes[ :content ] ) : nil end end |