Method: Maglove::Engine::Scope#style
- Defined in:
- lib/maglove/engine/scope.rb
#style(*args, &block) ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/maglove/engine/scope.rb', line 69 def style(*args, &block) style = nil if args[-1].class.name == 'Hash' = args.pop style = style_string(, *.keys) end classes = args.map { |a| "__#{a}" } haml_tag :span, class: classes.join(' '), style: style do yield if block_given? end end |