Sha256: ae267204173cd897f786d1f9ce2096b28a4ec56c48c66833deda781f8d2bfc30

Contents?: true

Size: 307 Bytes

Versions: 24

Compression:

Stored size: 307 Bytes

Contents

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
eye-patch-0.5.1 lib/eye/patch/option_set.rb
eye-patch-0.5.0 lib/eye/patch/option_set.rb
eye-patch-0.4.2 lib/eye/patch/option_set.rb
eye-patch-0.4.1 lib/eye/patch/option_set.rb
eye-patch-0.4.0 lib/eye/patch/option_set.rb
eye-patch-0.3.1 lib/eye/patch/option_set.rb
eye-patch-0.3.0 lib/eye/patch/option_set.rb
eye-patch-0.2.2 lib/eye/patch/option_set.rb
eye-patch-0.2.1 lib/eye/patch/option_set.rb
eye-patch-0.2.0 lib/eye/patch/option_set.rb
eye-patch-0.1.8 lib/eye/patch/option_set.rb
eye-patch-0.1.7 lib/eye/patch/option_set.rb
eye-patch-0.1.6 lib/eye/patch/option_set.rb
eye-patch-0.1.5 lib/eye/patch/option_set.rb
eye-patch-0.1.4 lib/eye/patch/option_set.rb
eye-patch-0.1.3 lib/eye/patch/option_set.rb
eye-patch-0.1.2 lib/eye/patch/option_set.rb
eye-patch-0.1.1 lib/eye/patch/option_set.rb
eye-patch-0.1.0 lib/eye/patch/option_set.rb
eye-patch-0.0.9 lib/eye/patch/option_set.rb