lib/bade/runtime/block.rb
# Calls the block and returns rendered content in string.
#
# Throws error when there is no block.
#
# @return [String]
Calls the block and returns rendered content in string.
Throws error when there is no block.
Calls the block and returns rendered content in string . Throws error when there is no block .
def render!(*args)
        raise MissingBlockDefinitionError.new(name, :render, nil, render_binding.__location_stack) if @block.nil?
        loc = location.dup
        render_binding.__buffs_push(loc)
        @block.call(*args)
        render_binding.__buffs_pop&.join || ''
      end
def render! ( * args ) raise MissingBlockDefinitionError . new ( name , :render , nil , render_binding . __location_stack ) if @block . nil? loc = location . dup render_binding . __buffs_push ( loc ) @block . call ( * args ) render_binding . __buffs_pop &. join || '' end
Calls the block and returns rendered content in string.
Calls the block and returns rendered content in string .
None
String
args