Class: MetaTags::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/meta_tags-rails/configuration.rb

Overview

MetaTags configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_limitObject

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_limitObject

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_separatorObject

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_limitObject

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