class IniParse::Generator
def option(key, value, opts = {})
If no section has been added to the document yet.
IniParse::NoSectionError::
==== Raises
opts
value:: The option's value.
key
==== Parameters
section has been added to the document.
Can only be called as part of a section block, or after at least one
Adds a new option to the current section.
def option(key, value, opts = {}) @context.lines << Lines::Option.new( key, value, line_options(opts) ) rescue LineNotAllowed # Tried to add an Option to a Document. raise NoSectionError, 'Your INI document contains an option before the first section is ' \ 'declared which is not allowed.' end