Class: ActiveSeo::Config

Inherits:
Hashie::Dash
  • Object
show all
Defined in:
lib/active_seo/config.rb

Instance Method Summary collapse

Instance Method Details

#opengraph_setup {|self.opengraph| ... } ⇒ Object

Yields:

  • (self.opengraph)


22
23
24
25
# File 'lib/active_seo/config.rb', line 22

def opengraph_setup(&block)
  self.opengraph = OpenGraphConfig.new
  yield self.opengraph
end

#twitter_setup {|self.twitter| ... } ⇒ Object

Yields:

  • (self.twitter)


27
28
29
30
# File 'lib/active_seo/config.rb', line 27

def twitter_setup(&block)
  self.twitter = TwitterCardConfig.new
  yield self.twitter
end