Class: Bookit::Content::Text

Inherits:
Generic
  • Object
show all
Defined in:
lib/bookit/content/text.rb

Instance Attribute Summary collapse

Attributes inherited from Generic

#attributes

Instance Method Summary collapse

Methods inherited from Generic

#is_type?, #type

Constructor Details

#initialize(text, options = {}) ⇒ Text

Returns a new instance of Text.



6
7
8
9
10
# File 'lib/bookit/content/text.rb', line 6

def initialize(text, options={})
  @text = text

  super options
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



4
5
6
# File 'lib/bookit/content/text.rb', line 4

def text
  @text
end

Instance Method Details

#renderObject



12
13
14
# File 'lib/bookit/content/text.rb', line 12

def render
  text
end