Class: Flutie::PageTitle
- Inherits:
-
Object
- Object
- Flutie::PageTitle
- Defined in:
- lib/flutie/page_title.rb
Overview
:nodoc:
Constant Summary collapse
- DEFAULT_PAGE_TITLE_SYMBOL =
:page_title- DEFAULT_SEPARATOR =
' : '.freeze
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #app_name ⇒ Object
-
#initialize(options) ⇒ PageTitle
constructor
A new instance of PageTitle.
- #page_title_symbol ⇒ Object
- #separator ⇒ Object
Constructor Details
#initialize(options) ⇒ PageTitle
Returns a new instance of PageTitle.
10 11 12 |
# File 'lib/flutie/page_title.rb', line 10 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/flutie/page_title.rb', line 8 def @options end |
Instance Method Details
#app_name ⇒ Object
14 15 16 |
# File 'lib/flutie/page_title.rb', line 14 def app_name [:app_name] || rails_app_name end |
#page_title_symbol ⇒ Object
18 19 20 |
# File 'lib/flutie/page_title.rb', line 18 def page_title_symbol [:page_title_symbol] || DEFAULT_PAGE_TITLE_SYMBOL end |
#separator ⇒ Object
22 23 24 |
# File 'lib/flutie/page_title.rb', line 22 def separator [:separator] || DEFAULT_SEPARATOR end |