Class: Rabbit::Theme::DirectoryEntry
- Defined in:
- lib/rabbit/theme/entry.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Entry
Entry::PROPERTY_BASE_NAME, Entry::THEME_BASE_NAME
Constants included from GetText
Instance Attribute Summary
Attributes inherited from Entry
#abstract, #dependencies, #description, #logger, #name, #parameters, #title
Instance Method Summary collapse
Methods inherited from Entry
#<=>, #available?, #category, #files, #full_path, #have_file?, #image_theme?, #initialize, #property_editable?
Methods included from GetText
Constructor Details
This class inherits a constructor from Rabbit::Theme::Entry
Instance Method Details
#data_dir ⇒ Object
141 142 143 144 145 146 147 148 |
# File 'lib/rabbit/theme/entry.rb', line 141 def data_dir dedicated_dir = File.join(@theme_dir, "data") if File.directory?(dedicated_dir) dedicated_dir else @theme_dir end end |
#theme_file ⇒ Object
137 138 139 |
# File 'lib/rabbit/theme/entry.rb', line 137 def theme_file File.join(@theme_dir, "#{THEME_BASE_NAME}.rb") end |