class IniParse::Document

def has_section?(key)

Returns true if a section with the given +key+ exists in this document.
def has_section?(key)
  @lines.has_key?(key.to_s)
end