Module: Nervion::PercentEncoder

Defined in:
lib/nervion/percent_encoder.rb

Constant Summary collapse

RESERVED_CHARACTERS =
/[^a-zA-Z0-9\-\.\_\~]/

Class Method Summary collapse

Class Method Details

.encode(value) ⇒ Object



7
8
9
# File 'lib/nervion/percent_encoder.rb', line 7

def self.encode(value)
  URI.escape value.to_s, RESERVED_CHARACTERS
end