Sha256: 583ee954383729ac36c1293cf48bb5332d8f82934c86577b796ecd5522e30151

Contents?: true

Size: 196 Bytes

Versions: 210

Compression:

Stored size: 196 Bytes

Contents

module ActiveSupport
  module JSON
    # A string that returns itself as its JSON-encoded form.
    class Variable < String
      def to_json(options=nil)
        self
      end
    end
  end
end

Version data entries

210 entries across 177 versions & 26 rubygems

Version Path
activesupport-2.0.4 lib/active_support/json/variable.rb
activesupport-2.1.0 lib/active_support/json/variable.rb
activesupport-2.1.1 lib/active_support/json/variable.rb
activesupport-2.1.2 lib/active_support/json/variable.rb
activesupport-2.2.2 lib/active_support/json/variable.rb
activesupport-2.3.2 lib/active_support/json/variable.rb
antfarm-0.3.0 rails/vendor/rails/activesupport/lib/active_support/json/variable.rb
antfarm-0.4.0 rails/vendor/rails/activesupport/lib/active_support/json/variable.rb
mack-active_record-0.8.2 lib/gems/activesupport-2.2.2/lib/active_support/json/variable.rb
mack-facets-0.8.3 lib/gems/activesupport-2.2.2/lib/active_support/json/variable.rb
mack-facets-0.8.3.1 lib/gems/activesupport-2.2.2/lib/active_support/json/variable.rb
radiant-0.6.5.1 vendor/rails/activesupport/lib/active_support/json/variable.rb
radiant-0.6.5 vendor/rails/activesupport/lib/active_support/json/variable.rb
radiant-0.6.7 vendor/rails/activesupport/lib/active_support/json/variable.rb
radiant-0.6.6 vendor/rails/activesupport/lib/active_support/json/variable.rb
radiant-0.6.8 vendor/rails/activesupport/lib/active_support/json/variable.rb
radiant-0.6.9 vendor/rails/activesupport/lib/active_support/json/variable.rb
radiant-0.7.0 vendor/rails/activesupport/lib/active_support/json/variable.rb
radiant-0.8.0 vendor/rails/activesupport/lib/active_support/json/variable.rb
radiant-0.7.1 vendor/rails/activesupport/lib/active_support/json/variable.rb