module Haml::Helpers
def block_is_haml?(block)
-
(Boolean)
- Whether or not `block` is defined directly in a Haml template
Parameters:
-
block
(Proc
) -- A Ruby block
def block_is_haml?(block) eval('_hamlout', block.binding) true rescue false end