diff options
| author | Randy Morgan <[email protected]> | 2012-11-05 14:08:42 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-11-05 14:08:42 +0900 |
| commit | 8ffd7652c4cc66b52f7992f24a2effc7dc3958c8 (patch) | |
| tree | 07e8f9684d241db7fe513c2055ca2789df3361f2 /lib/axlsx/util/options_parser.rb | |
| parent | 75eee58d7aecd0f0e89ec7a8ff2a37e6013f9e8d (diff) | |
| download | caxlsx-8ffd7652c4cc66b52f7992f24a2effc7dc3958c8.tar.gz caxlsx-8ffd7652c4cc66b52f7992f24a2effc7dc3958c8.zip | |
completed documentation
Diffstat (limited to 'lib/axlsx/util/options_parser.rb')
| -rw-r--r-- | lib/axlsx/util/options_parser.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/axlsx/util/options_parser.rb b/lib/axlsx/util/options_parser.rb index b6332275..07dd128b 100644 --- a/lib/axlsx/util/options_parser.rb +++ b/lib/axlsx/util/options_parser.rb @@ -1,5 +1,11 @@ module Axlsx + # This module defines a single method for parsing options in class + # initializers. module OptionsParser + + # Parses an options hash by calling any defined method by the same + # name of the key postfixed with an '=' + # @param [Hash] options Options to parse. def parse_options(options={}) options.each do |key, value| self.send("#{key}=", value) if self.respond_to?("#{key}=") && value != nil |
