Class: Bookit::Content::Header

Inherits:
Generic
  • Object
show all
Defined in:
lib/bookit/content/header.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 = {}) ⇒ Header

headers will only ever contain text, but usually contained separately for formatting purposes



8
9
10
11
12
# File 'lib/bookit/content/header.rb', line 8

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/header.rb', line 4

def text
  @text
end

Instance Method Details

#renderObject



14
15
16
# File 'lib/bookit/content/header.rb', line 14

def render
  text 
end