Module: LazyElements

Defined in:
lib/lazy_elements.rb,
lib/lazy_elements/config.rb,
lib/lazy_elements/engine.rb,
lib/lazy_elements/version.rb,
lib/lazy_elements/view_helpers.rb,
lib/generators/lazy_elements/install/install_generator.rb

Defined Under Namespace

Modules: Generators, ViewHelpers Classes: Configuration, Engine

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.configObject



20
21
22
# File 'lib/lazy_elements/config.rb', line 20

def self.config
  @config
end

.configure {|@config ||= LazyElements::Configuration.new| ... } ⇒ Object

Yields:



16
17
18
# File 'lib/lazy_elements/config.rb', line 16

def self.configure(&block)
  yield @config ||= LazyElements::Configuration.new
end

.default_class_nameObject



12
13
14
# File 'lib/lazy_elements/config.rb', line 12

def self.default_class_name
  'lazy_element'
end

.default_controller_pathObject



4
5
6
# File 'lib/lazy_elements/config.rb', line 4

def self.default_controller_path
  '/api/lazy_elements/elements'
end

.default_template_pathObject



8
9
10
# File 'lib/lazy_elements/config.rb', line 8

def self.default_template_path
  'api/lazy_elements/elements/'
end