Module: Rbem
- Extended by:
- Configuration
- Defined in:
- lib/rbem.rb,
lib/rbem/version.rb
Constant Summary
collapse
- VERSION =
'0.2'
Instance Method Summary
collapse
configuration, define_setting
Instance Method Details
#b(*args, &block) ⇒ Object
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/rbem.rb', line 10
def b(*args, &block)
_args = parse_args(args)
@block_name = _args[:name]
@block_mods = _args[:mods]
block_type = _args[:type]
block_opts = _args[:options]
block_opts[:class] = collect_bem_class(@block_name, @block_mods, block_opts, type: :block)
content_tag(block_type, block_given? ? capture(&block) : nil, block_opts)
end
|
#e(*args, &block) ⇒ Object
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# File 'lib/rbem.rb', line 24
def e(*args, &block)
_args = parse_args(args)
el_name = _args[:name]
el_mods = _args[:mods]
el_type = _args[:type]
el_opts = _args[:options]
el_opts[:class] = collect_bem_class(el_name,
el_mods,
el_opts,
type: :element,
inherit_names: _args[:i_names],
inherit_mods: _args[:i_mods] )
content_tag(el_type, block_given? ? capture(&block) : nil, el_opts)
end
|