Class: Flutie::PageTitle

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/flutie/page_title.rb', line 8

def options
  @options
end

Instance Method Details

#app_nameObject



14
15
16
# File 'lib/flutie/page_title.rb', line 14

def app_name
  options[:app_name] || rails_app_name
end

#page_title_symbolObject



18
19
20
# File 'lib/flutie/page_title.rb', line 18

def page_title_symbol
  options[:page_title_symbol] || DEFAULT_PAGE_TITLE_SYMBOL
end

#separatorObject



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

def separator
  options[:separator] || DEFAULT_SEPARATOR
end