Method: IniFile#has_section?
- Defined in:
- lib/inifile.rb
#has_section?(section) ⇒ Boolean
Public: Check to see if the IniFile contains the section.
section - The section name as a String.
Returns true if the section exists in the IniFile.
320 321 322 |
# File 'lib/inifile.rb', line 320 def has_section?( section ) @ini.has_key? section.to_s end |