Sha256: d293659402f587bb4c946f32521304d9ee22042d88555d5ecf1c25035554ff8b

Contents?: true

Size: 342 Bytes

Versions: 38

Compression:

Stored size: 342 Bytes

Contents

module Volt
  module Parsing
    def self.decodeURI(value)
      if RUBY_PLATFORM == 'opal'
        `decodeURI(value)`
      else
        CGI.unescape(value.to_s)
      end
    end

    def self.encodeURI(value)
      if RUBY_PLATFORM == 'opal'
        `encodeURI(value)`
      else
        CGI.escape(value.to_s)
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
volt-0.9.7.pre8 lib/volt/utils/parsing.rb
volt-0.9.7.pre7 lib/volt/utils/parsing.rb
volt-0.9.7.pre6 lib/volt/utils/parsing.rb
volt-0.9.7.pre5 lib/volt/utils/parsing.rb
volt-0.9.7.pre3 lib/volt/utils/parsing.rb
volt-0.9.7.pre2 lib/volt/utils/parsing.rb
volt-0.9.6 lib/volt/utils/parsing.rb
volt-0.9.6.pre3 lib/volt/utils/parsing.rb
volt-0.9.6.pre2 lib/volt/utils/parsing.rb
volt-0.9.6.pre1 lib/volt/utils/parsing.rb
volt-0.9.5 lib/volt/utils/parsing.rb
volt-0.9.5.pre12 lib/volt/utils/parsing.rb
volt-0.9.5.pre11 lib/volt/utils/parsing.rb
volt-0.9.5.pre9 lib/volt/utils/parsing.rb
volt-0.9.5.pre8 lib/volt/utils/parsing.rb
volt-0.9.5.pre7 lib/volt/utils/parsing.rb
volt-0.9.5.pre6 lib/volt/utils/parsing.rb
volt-0.9.5.pre5 lib/volt/utils/parsing.rb
volt-0.9.5.pre4 lib/volt/utils/parsing.rb
volt-0.9.5.pre3 lib/volt/utils/parsing.rb