lib/faraday/options.rb in faraday-1.10.4 vs lib/faraday/options.rb in faraday-2.0.0.alpha.pre.1

- old
+ new

@@ -102,11 +102,11 @@ keys.empty? end # Public def each_key(&block) - return to_enum(:each_key) unless block_given? + return to_enum(:each_key) unless block keys.each(&block) end # Public @@ -116,11 +116,11 @@ alias has_key? key? # Public def each_value(&block) - return to_enum(:each_value) unless block_given? + return to_enum(:each_value) unless block values.each(&block) end # Public @@ -166,10 +166,10 @@ def self.attribute_options @attribute_options ||= {} end def self.memoized(key, &block) - unless block_given? + unless block raise ArgumentError, '#memoized must be called with a block' end memoized_attributes[key.to_sym] = block class_eval <<-RUBY, __FILE__, __LINE__ + 1