Class: MetaTags::Configuration
- Inherits:
-
Object
- Object
- MetaTags::Configuration
- Defined in:
- lib/meta_tags-rails/configuration.rb
Overview
MetaTags configuration.
Instance Attribute Summary collapse
-
#description_limit ⇒ Object
How many characters to truncate description to.
-
#keywords_limit ⇒ Object
How many characters to truncate keywords to.
-
#keywords_separator ⇒ Object
Keywords separator - a string to join keywords with.
-
#title_limit ⇒ Object
How many characters to truncate title to.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Initializes a new instance of Configuration class.
Constructor Details
#initialize ⇒ Configuration
Initializes a new instance of Configuration class.
14 15 16 17 18 19 |
# File 'lib/meta_tags-rails/configuration.rb', line 14 def initialize @title_limit = 70 @description_limit = 160 @keywords_limit = 255 @keywords_separator = ', ' end |
Instance Attribute Details
#description_limit ⇒ Object
How many characters to truncate description to.
7 8 9 |
# File 'lib/meta_tags-rails/configuration.rb', line 7 def description_limit @description_limit end |
#keywords_limit ⇒ Object
How many characters to truncate keywords to.
9 10 11 |
# File 'lib/meta_tags-rails/configuration.rb', line 9 def keywords_limit @keywords_limit end |
#keywords_separator ⇒ Object
Keywords separator - a string to join keywords with.
11 12 13 |
# File 'lib/meta_tags-rails/configuration.rb', line 11 def keywords_separator @keywords_separator end |
#title_limit ⇒ Object
How many characters to truncate title to.
5 6 7 |
# File 'lib/meta_tags-rails/configuration.rb', line 5 def title_limit @title_limit end |