Module: SeoHelper
- Defined in:
- lib/seo_helper.rb,
lib/seo_helper/engine.rb,
lib/seo_helper/format.rb,
lib/seo_helper/helper.rb,
lib/seo_helper/engine3.rb,
lib/seo_helper/railtie.rb,
lib/seo_helper/version.rb,
lib/seo_helper/configuration.rb
Defined Under Namespace
Modules: ControllerHelper, Helper, Rails
Classes: Configuration, Engine, Engine3, Railtie
Constant Summary
collapse
- VERSION =
'1.0.3'.freeze
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
6
7
8
|
# File 'lib/seo_helper.rb', line 6
def configuration
@configuration
end
|
Class Method Details
20
21
22
23
|
# File 'lib/seo_helper.rb', line 20
def self.configure
self.configuration ||= Configuration.new
yield(configuration)
end
|
.format_current_page(title, page_number) ⇒ Object
2
3
4
|
# File 'lib/seo_helper/format.rb', line 2
def self.format_current_page(title, page_number)
self.configuration..call(title, page_number)
end
|
6
7
8
|
# File 'lib/seo_helper/format.rb', line 6
def self.format_site_name(text, site_name)
self.configuration.site_name_formatter.call(text, site_name)
end
|