Module: RailsBlocks::Names
- Included in:
- BlockHelper, Path
- Defined in:
- lib/rails_blocks/names.rb
Instance Method Summary collapse
- #block_classes(b_name, options = {}) ⇒ Object
- #block_name(b_name) ⇒ Object
- #element_classes(b_name, e_name, options = {}) ⇒ Object
- #element_name(b_name, e_name) ⇒ Object
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, = {}) base_class = block_class b_name classes(base_class, true, ) 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, = {}) base_class = element_class b_name, e_name classes(base_class, false, ) 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 |