Method: Addressable::URI#encode_with

Defined in:
lib/addressable/uri.rb

#encode_with(coder) ⇒ Object



2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
# File 'lib/addressable/uri.rb', line 2406

def encode_with(coder)
  instance_variables.each do |ivar|
    value = instance_variable_get(ivar)
    if value != NONE
      key = ivar.to_s.slice(1..-1)
      coder[key] = value
    end
  end
  nil
end