lib/ethon/easy/options.rb in ethon-0.10.1 vs lib/ethon/easy/options.rb in ethon-0.11.0

- old
+ new

@@ -14,11 +14,19 @@ def escape=( b ) @escape = b end def escape? - return true if @escape - @escape.nil? ? true : false + return true if !defined?(@escape) || @escape.nil? + @escape + end + + def multipart=(b) + @multipart = b + end + + def multipart? + !!@multipart end Curl.easy_options(nil).each do |opt, props| method_name = "#{opt}=".freeze unless method_defined? method_name