Module: Museum

Defined in:
lib/museum.rb,
lib/museum/engine.rb,
lib/museum/railtie.rb,
lib/museum/version.rb,
app/models/museum/case.rb,
app/models/museum/loupe.rb,
lib/museum/configuration.rb,
lib/generators/museum/utils.rb,
app/models/museum/case_detail.rb,
app/helpers/museum/cases_helper.rb,
app/controllers/museum/cases_controller.rb,
lib/generators/museum/views/views_generator.rb,
lib/generators/museum/install/install_generator.rb

Defined Under Namespace

Modules: CasesHelper, Generators Classes: Case, CaseDetail, CasesController, Configuration, Engine, InstallGenerator, Loupe, Railtie

Constant Summary collapse

VERSION =
File.read(File.expand_path('../../../VERSION', __FILE__))

Class Method Summary collapse

Class Method Details

.configurationObject



9
10
11
# File 'lib/museum/configuration.rb', line 9

def self.configuration
  @@configuration ||= Museum::Configuration.new
end

.configure(configuration = Museum::Configuration.new) ⇒ Object



2
3
4
5
6
7
# File 'lib/museum/configuration.rb', line 2

def self.configure(configuration = Museum::Configuration.new)
  if block_given?
    yield configuration
  end
  @@configuration = configuration
end

.version_stringObject



4
5
6
# File 'lib/museum/version.rb', line 4

def self.version_string
  "Museum version #{Museum::VERSION}"
end