NAME

XAS::Lib::Mixins::Configs - A mixin for handling config files

SYNOPSIS

use XAS::Class;
  version   => '0.01',
  base      => 'XAS::Base',
  mixin     => 'XAS::Lib::Mixins::Configs',
  accessors => 'cfg',
;

DESCRIPTION

This mixin provides a standardized way to load .ini files.

METHODS

load_config($filename, $handle)

This method will load a .ini style configuration file. It uses the following parameters:

$filename

The file name for the configuration file.

$handle

An optional name to the accessor that will access the Config::IniFiles object in the current self. This name defaults to 'cfg'.

SEE ALSO

XAS

AUTHOR

Kevin L. Esteb, <kevin@kesteb.us>

COPYRIGHT AND LICENSE

Copyright (C) 2014 Kevin L. Esteb

This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.