Module: BulmaX::Dsl::Slots::DeferredRender
- Defined in:
- lib/bulma_x/dsl/slots.rb
Instance Method Summary collapse
Instance Method Details
#before_template ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/bulma_x/dsl/slots.rb', line 7 def before_template(&) @_vanishing = true vanish do prepare(&) yield self if block_given? end @_vanishing = false super end |
#prepare ⇒ Object
17 |
# File 'lib/bulma_x/dsl/slots.rb', line 17 def prepare; end |
#render ⇒ Object
19 20 21 22 23 |
# File 'lib/bulma_x/dsl/slots.rb', line 19 def render(...) return if @_vanishing super end |