class Padrino::Helpers::OutputHelpers::ErbHandler
def engine_matches?(block)
Returns true if the block is Erb.
#
def engine_matches?(block) block.binding.eval('defined? __in_erb_template') end
def engine_matches?(block) block.binding.eval('defined? __in_erb_template') end