Class: Ebookie::Document::Config
- Inherits:
-
Object
- Object
- Ebookie::Document::Config
- Defined in:
- lib/ebookie/document/config.rb
Instance Attribute Summary collapse
-
#cover ⇒ Object
Returns the value of attribute cover.
-
#creator ⇒ Object
Returns the value of attribute creator.
-
#date ⇒ Object
Returns the value of attribute date.
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#language ⇒ Object
Returns the value of attribute language.
-
#publisher ⇒ Object
Returns the value of attribute publisher.
-
#rights ⇒ Object
Returns the value of attribute rights.
-
#source ⇒ Object
Returns the value of attribute source.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#template ⇒ Object
Returns the value of attribute template.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
Instance Attribute Details
#cover ⇒ Object
Returns the value of attribute cover.
14 15 16 |
# File 'lib/ebookie/document/config.rb', line 14 def cover @cover end |
#creator ⇒ Object
Returns the value of attribute creator.
6 7 8 |
# File 'lib/ebookie/document/config.rb', line 6 def creator @creator end |
#date ⇒ Object
Returns the value of attribute date.
12 13 14 |
# File 'lib/ebookie/document/config.rb', line 12 def date @date end |
#destination ⇒ Object
Returns the value of attribute destination.
13 14 15 |
# File 'lib/ebookie/document/config.rb', line 13 def destination @destination end |
#language ⇒ Object
Returns the value of attribute language.
10 11 12 |
# File 'lib/ebookie/document/config.rb', line 10 def language @language end |
#publisher ⇒ Object
Returns the value of attribute publisher.
7 8 9 |
# File 'lib/ebookie/document/config.rb', line 7 def publisher @publisher end |
#rights ⇒ Object
Returns the value of attribute rights.
8 9 10 |
# File 'lib/ebookie/document/config.rb', line 8 def rights @rights end |
#source ⇒ Object
Returns the value of attribute source.
11 12 13 |
# File 'lib/ebookie/document/config.rb', line 11 def source @source end |
#subject ⇒ Object
Returns the value of attribute subject.
9 10 11 |
# File 'lib/ebookie/document/config.rb', line 9 def subject @subject end |
#template ⇒ Object
Returns the value of attribute template.
15 16 17 |
# File 'lib/ebookie/document/config.rb', line 15 def template @template end |
#title ⇒ Object
Returns the value of attribute title.
5 6 7 |
# File 'lib/ebookie/document/config.rb', line 5 def title @title end |
Instance Method Details
#slug ⇒ Object
37 38 39 |
# File 'lib/ebookie/document/config.rb', line 37 def slug title.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '') end |