class IDL::GenFile::Content

def [](sectionid)

def [](sectionid)
  @sections[(sectionid || '').to_sym]
end

def each(&block)

def each(&block)
  @sections.each(&block)
end

def has_section?(sectionid)

def has_section?(sectionid)
  @sections.has_key?((sectionid || '').to_sym)
end

def initialize(sections = {})

def initialize(sections = {})
  # copy content map transforming all keys to symbols
  @sections = sections.inject({}) { |m, (k, v)| m[k.to_sym] = v
end

def sections

def sections
  @sections.keys
end