Class: Pageflow::Theme

Inherits:
Object
  • Object
show all
Defined in:
lib/pageflow/theme.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (readonly)

Returns the value of attribute directory_name.



3
4
5
# File 'lib/pageflow/theme.rb', line 3

def directory_name
  @directory_name
end

#nameObject (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_pathObject



10
11
12
# File 'lib/pageflow/theme.rb', line 10

def stylesheet_path
  "pageflow/themes/#{name}.css"
end