lib/sinclair/options.rb in sinclair-1.9.0 vs lib/sinclair/options.rb in sinclair-1.10.0

- old
+ new

@@ -22,10 +22,11 @@ class Options autoload :Builder, 'sinclair/options/builder' autoload :ClassMethods, 'sinclair/options/class_methods' extend ClassMethods + include Comparable # @param options [Hash] hash with options (see {.options}, {.with_options}) # @example (see Options) def initialize(options = {}) check_options(options) @@ -54,22 +55,9 @@ # # protocol: 'https' # # } def to_h allowed_options.inject({}) do |hash, option| hash.merge(option => public_send(option)) - end - end - - # returns if other equals to self - # - # @param other [Object] object to be compared - # - # @return [TrueClass,FalseClass] - def ==(other) - return false unless self.class == other.class - - allowed_options.all? do |name| - public_send(name) == other.public_send(name) end end private