Class: Bookit::Content::Header
- Defined in:
- lib/bookit/content/header.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from Generic
Instance Method Summary collapse
-
#initialize(text, options = {}) ⇒ Header
constructor
headers will only ever contain text, but usually contained separately for formatting purposes.
- #render ⇒ Object
Methods inherited from Generic
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, ={}) @text = text super end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/bookit/content/header.rb', line 4 def text @text end |
Instance Method Details
#render ⇒ Object
14 15 16 |
# File 'lib/bookit/content/header.rb', line 14 def render text end |