Module: URI::Kernel

Included in:
Object
Defined in:
lib/standard/facets/uri.rb

Instance Method Summary collapse

Instance Method Details

#unuri(s) ⇒ Object



19
20
21
# File 'lib/standard/facets/uri.rb', line 19

def unuri(s)
  URI.unescape(s)
end

#uri(s, w = %r{[^a-zA-Z_0-9./-]}) ⇒ Object



14
15
16
# File 'lib/standard/facets/uri.rb', line 14

def uri(s, w=%r{[^a-zA-Z_0-9./-]})
  URI.escape(s, w)
end