Class: Theme
- Inherits:
-
Object
- Object
- Theme
- Defined in:
- lib/lokka/theme.rb
Instance Attribute Summary collapse
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#root_dir ⇒ Object
readonly
Returns the value of attribute root_dir.
-
#root_path ⇒ Object
readonly
Returns the value of attribute root_path.
Instance Method Summary collapse
-
#initialize(root_dir) ⇒ Theme
constructor
A new instance of Theme.
- #to_path(name) ⇒ Object
Constructor Details
Instance Attribute Details
#dir ⇒ Object (readonly)
Returns the value of attribute dir.
4 5 6 |
# File 'lib/lokka/theme.rb', line 4 def dir @dir end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/lokka/theme.rb', line 4 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/lokka/theme.rb', line 4 def path @path end |
#root_dir ⇒ Object (readonly)
Returns the value of attribute root_dir.
4 5 6 |
# File 'lib/lokka/theme.rb', line 4 def root_dir @root_dir end |
#root_path ⇒ Object (readonly)
Returns the value of attribute root_path.
4 5 6 |
# File 'lib/lokka/theme.rb', line 4 def root_path @root_path end |
Instance Method Details
#to_path(name) ⇒ Object
14 15 16 |
# File 'lib/lokka/theme.rb', line 14 def to_path(name) "#{@dir}/#{name}" end |