Class: TermNote::Pane::Text
- Inherits:
-
Object
- Object
- TermNote::Pane::Text
- Includes:
- TermNote::Pane, Helpers::Content, Helpers::Title
- Defined in:
- lib/termnote/pane/text.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#title ⇒ Object
Returns the value of attribute title.
Attributes included from TermNote::Pane
Instance Method Summary collapse
-
#initialize(options) ⇒ Text
constructor
A new instance of Text.
Methods included from TermNote::Pane
Constructor Details
#initialize(options) ⇒ Text
Returns a new instance of Text.
10 11 12 13 |
# File 'lib/termnote/pane/text.rb', line 10 def initialize() @title = [:title] || ['title'] @content = [:content] || ['content'] end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
8 9 10 |
# File 'lib/termnote/pane/text.rb', line 8 def content @content end |
#title ⇒ Object
Returns the value of attribute title.
8 9 10 |
# File 'lib/termnote/pane/text.rb', line 8 def title @title end |