Module: Volt::Parsing
- Defined in:
- lib/volt/utils/parsing.rb
Class Method Summary collapse
Class Method Details
.decodeURI(value) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/volt/utils/parsing.rb', line 3 def self.decodeURI(value) if RUBY_PLATFORM == 'opal' `decodeURI(value)` else CGI.unescape(value.to_s) end end |
.encodeURI(value) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/volt/utils/parsing.rb', line 11 def self.encodeURI(value) if RUBY_PLATFORM == 'opal' `encodeURI(value)` else CGI.escape(value.to_s) end end |