Module: MetaTags

Defined in:
lib/meta_tags.rb,
lib/meta_tags/tag.rb,
lib/meta_tags/railtie.rb,
lib/meta_tags/version.rb,
lib/meta_tags/renderer.rb,
lib/meta_tags/content_tag.rb,
lib/meta_tags/view_helper.rb,
lib/meta_tags/configuration.rb,
lib/meta_tags/text_normalizer.rb,
lib/meta_tags/controller_helper.rb,
lib/meta_tags/meta_tags_collection.rb,
lib/generators/meta_tags/install_generator.rb

Overview

MetaTags gem namespace.

Defined Under Namespace

Modules: ControllerHelper, Generators, TextNormalizer, ViewHelper Classes: Configuration, ContentTag, MetaTagsCollection, Railtie, Renderer, Tag

Constant Summary collapse

VERSION =

Gem version.

"2.22.1"

Class Method Summary collapse

Class Method Details

.configObject

Returns MetaTags gem configuration.



10
11
12
# File 'lib/meta_tags.rb', line 10

def self.config
  @config ||= Configuration.new
end

.configure {|Configuration| ... } ⇒ Object

Configures MetaTags gem.

Examples:


MetaTags.configure do |config|
  # config.title_limit = 100
end

Yields:



22
23
24
# File 'lib/meta_tags.rb', line 22

def self.configure
  yield config
end