Module: ActiveSupport
- Defined in:
- lib/to-javascript/code.rb,
lib/to-javascript/encoding.rb,
lib/to-javascript/encoders/time_with_zone.rb
Overview
The Javascript object is just a String that when parced into Javascript code isnt wrapped in quotes.
Example:
here = 'http://www.examples.com'
{
:isHere => Javascript("(window.location == #{here})"),
}.to_js
# {
# "isHere": (window.location == http://www.examples.com)
# }
Defined Under Namespace
Modules: JS Classes: TimeWithZone