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.
Instance Method Summary collapse
-
#initialize(name) ⇒ Theme
constructor
A new instance of Theme.
- #stylesheet_path ⇒ Object
Constructor Details
#initialize(name) ⇒ Theme
Returns a new instance of Theme.
5 6 7 8 |
# File 'lib/pageflow/theme.rb', line 5 def initialize(name) @name = name.to_s @directory_name = name.to_s 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 |
Instance Method Details
#stylesheet_path ⇒ Object
10 11 12 |
# File 'lib/pageflow/theme.rb', line 10 def stylesheet_path "pageflow/themes/#{name}.css" end |