Module: RailsBlocks

Defined in:
lib/rails_blocks.rb,
lib/rails_blocks/path.rb,
lib/rails_blocks/names.rb,
lib/rails_blocks/engine.rb,
lib/rails_blocks/levels.rb,
lib/rails_blocks/version.rb,
lib/rails_blocks/exceptions.rb,
lib/rails_blocks/blocks/block.rb,
lib/rails_blocks/configuration.rb,
lib/rails_blocks/blocks/element.rb,
lib/rails_blocks/blocks/renderer.rb

Defined Under Namespace

Modules: Blocks, Levels, Names, Path Classes: BadMixError, Configuration, Engine, NoBlockContextError

Constant Summary collapse

VERSION =
"0.8.1".freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject



13
14
15
# File 'lib/rails_blocks.rb', line 13

def self.config
	@config ||= Configuration.new
end

Class Method Details

.configure {|config| ... } ⇒ Object

Yields:



17
18
19
# File 'lib/rails_blocks.rb', line 17

def self.configure
	yield config
end

.reload_treeObject



25
26
27
# File 'lib/rails_blocks.rb', line 25

def self.reload_tree
	
end

.resetObject



21
22
23
# File 'lib/rails_blocks.rb', line 21

def self.reset
	@config = Configuration.new
end