Class: TermNote::Pane::Text

Inherits:
Object
  • Object
show all
Includes:
TermNote::Pane, Helpers::Content, Helpers::Title
Defined in:
lib/termnote/pane/text.rb

Instance Attribute Summary collapse

Attributes included from TermNote::Pane

#height, #show, #width

Instance Method Summary collapse

Methods included from TermNote::Pane

#call

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(options)
  @title = options[:title] || options['title']
  @content = options[:content] || options['content']
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



8
9
10
# File 'lib/termnote/pane/text.rb', line 8

def content
  @content
end

#titleObject

Returns the value of attribute title.



8
9
10
# File 'lib/termnote/pane/text.rb', line 8

def title
  @title
end