lib/vedeu/options.rb in vedeu-0.6.15 vs lib/vedeu/options.rb in vedeu-0.6.16

- old
+ new

@@ -6,10 +6,10 @@ class Options # @param options [Hash] # @param defaults [Hash] def initialize(options = {}, defaults = {}) - @options = options || {} + @options = options || {} @defaults = defaults || {} @defaults.merge!(@options).each do |key, value| instance_variable_set("@#{key}", value) self.class.send(:define_method, key) { value }