Class: Pageflow::Theme
- Inherits:
-
Object
- Object
- Pageflow::Theme
- Defined in:
- lib/pageflow/theme.rb
Instance Attribute Summary collapse
-
#directory_name ⇒ Object
readonly
Returns the value of attribute directory_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #has_home_button? ⇒ Boolean
-
#initialize(name, options = {}) ⇒ Theme
constructor
A new instance of Theme.
- #stylesheet_path ⇒ Object
Constructor Details
#initialize(name, options = {}) ⇒ Theme
Returns a new instance of Theme.
5 6 7 8 9 |
# File 'lib/pageflow/theme.rb', line 5 def initialize(name, = {}) @name = name.to_s @directory_name = name.to_s @options = end |
Instance Attribute Details
#directory_name ⇒ Object (readonly)
Returns the value of attribute directory_name.
3 4 5 |
# File 'lib/pageflow/theme.rb', line 3 def directory_name @directory_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/pageflow/theme.rb', line 3 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/pageflow/theme.rb', line 3 def @options end |
Instance Method Details
#has_home_button? ⇒ Boolean
15 16 17 |
# File 'lib/pageflow/theme.rb', line 15 def !@options[:no_home_button] end |
#stylesheet_path ⇒ Object
11 12 13 |
# File 'lib/pageflow/theme.rb', line 11 def stylesheet_path "pageflow/themes/#{name}.css" end |