Sha256: d6e15a76d9cef506e6a0a6d834f61bdef919d61ec7ebbedacfc8d67adc47b1f3
Contents?: true
Size: 465 Bytes
Versions: 8
Compression:
Stored size: 465 Bytes
Contents
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 end end end end
Version data entries
8 entries across 8 versions & 2 rubygems