lib/eye/patch/option_set.rb in eye-patch-0.5.1 vs lib/eye/patch/option_set.rb in eye-patch-1.0.0

- old
+ new

@@ -1,11 +1,16 @@ +# frozen_string_literal: true + module Eye::Patch + class OptionSet < Hash def initialize(option_class, options) Array(options).each do |option| option_data = option_class.name_and_class(option[:name].to_sym) self[option_data[:name]] = option[:config].merge(type: option_data[:type]) end end + end + end