module Haml::Helpers

def block_is_haml?(block)

Returns:
  • (Boolean) - Whether or not `block` is defined directly in a Haml template

Parameters:
  • block (Proc) -- A Ruby block
def block_is_haml?(block)
  eval('!!defined?(_hamlout)', block.binding)
end