Class: ActiveSupport::JSON::Variable
- Defined in:
- lib/monetra/active_support/json.rb
Overview
returns the literal string as its JSON encoded form. Useful for passing javascript variables into functions.
page.call ‘Element.show’, ActiveSupport::JSON::Variable.new(“$$(#items li)”)
Instance Method Summary collapse
-
#to_json ⇒ Object
:nodoc:.
Methods inherited from String
Methods included from CoreExtensions::String::Iterators
Methods included from CoreExtensions::String::StartsEndsWith
Methods included from CoreExtensions::String::Inflections
#camelize, #classify, #constantize, #dasherize, #demodulize, #foreign_key, #humanize, #pluralize, #singularize, #tableize, #titleize, #underscore
Methods included from CoreExtensions::String::Conversions
Methods included from CoreExtensions::String::Access
#at, #first, #from, #last, #to
Instance Method Details
#to_json ⇒ Object
:nodoc:
11 12 13 |
# File 'lib/monetra/active_support/json.rb', line 11 def to_json self end |