Module: RailsBlocks::Names

Included in:
BlockHelper, Path
Defined in:
lib/rails_blocks/names.rb

Instance Method Summary collapse

Instance Method Details

#block_classes(b_name, options = {}) ⇒ Object



8
9
10
11
# File 'lib/rails_blocks/names.rb', line 8

def block_classes(b_name, options = {})
	base_class = block_class b_name
	classes(base_class, true, options)
end

#block_name(b_name) ⇒ Object



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

def block_name(b_name)
	b_name.to_s
end

#element_classes(b_name, e_name, options = {}) ⇒ Object



3
4
5
6
# File 'lib/rails_blocks/names.rb', line 3

def element_classes(b_name, e_name, options = {})
	base_class = element_class b_name, e_name
	classes(base_class, false, options)
end

#element_name(b_name, e_name) ⇒ Object



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

def element_name(b_name, e_name)
	b_name.to_s + RailsBlocks.config.element_separator + e_name.to_s
end