Class: LittleGhost::Content::Text
- Inherits:
-
Data
- Object
- Data
- LittleGhost::Content::Text
- Includes:
- Module.new do # :nodoc: def to_h = Content.serialize(self) def to_json(*arguments) = JSON.generate(to_h, *arguments) end
- Defined in:
- lib/little_ghost/content.rb,
lib/little_ghost/content.rb
Overview
Contains model-visible text.
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text
24 25 26 |
# File 'lib/little_ghost/content.rb', line 24 def text @text end |