Class: Rabbit::Theme::DirectoryEntry

Inherits:
Entry
  • Object
show all
Defined in:
lib/rabbit/theme/entry.rb

Direct Known Subclasses

ImageDirectoryEntry

Constant Summary

Constants inherited from Entry

Entry::PROPERTY_BASE_NAME, Entry::THEME_BASE_NAME

Constants included from GetText

GetText::DOMAIN

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

included

Constructor Details

This class inherits a constructor from Rabbit::Theme::Entry

Instance Method Details

#data_dirObject


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_fileObject


137
138
139
# File 'lib/rabbit/theme/entry.rb', line 137

def theme_file
  File.join(@theme_dir, "#{THEME_BASE_NAME}.rb")
end