Method: Externals::Configuration::Configuration#remove_section

Defined in:
lib/externals/configuration/configuration.rb

#remove_section(sec) ⇒ Object



125
126
127
128
129
130
# File 'lib/externals/configuration/configuration.rb', line 125

def remove_section sec
  sec = sections.detect{|section| section.title == sec}

  raise "No section found in config file for #{sec}" unless sec
  sections.delete(sec)
end