Method: HTTP::Options#follow=

Defined in:
lib/http/options.rb

#follow=(value) ⇒ Object



129
130
131
132
133
134
135
136
137
# File 'lib/http/options.rb', line 129

def follow=(value)
  @follow =
    case
    when !value                    then nil
    when true == value             then {}
    when value.respond_to?(:fetch) then value
    else argument_error! "Unsupported follow options: #{value}"
    end
end