Class: LittleGhost::Content::Text

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



24
25
26
# File 'lib/little_ghost/content.rb', line 24

def text
  @text
end