class Haml::Buffer

def toplevel?

Returns:
  • (Boolean) - Whether or not this buffer is a top-level template,
def toplevel?
  upper.nil?
end