Class Rex::Parser::Ini
In: lib/rex/parser/ini.rb
Parent: Hash

This class parses the contents of an INI file.

Methods

add_group   each_group   from_file   from_file   from_s   from_s   group?   new   to_file   to_s  

Attributes

path  [R] 

Public Class methods

Creates a new class instance and reads in the contents of the supplied file path.

Creates a new class instance from the supplied string.

Initializes an ini instance and tries to read in the groups from the file if it exists.

Public Instance methods

Adds a group of the supplied name if it doesn‘t already exist.

Enumerates the groups hash keys.

Reads in the groups from the supplied file path or the instance‘s file path.

Reads in the groups from the supplied string.

Checks to see if name is a valid group.

Writes the group settings to a file.

Converts the groups to a string.

[Validate]