module SimpleJson

Constants

VERSION

Attributes

config[RW]
json_module[W]

Public Class Methods

cache_key_prefix() click to toggle source
# File lib/simple_json.rb, line 45
def cache_key_prefix
  config[:cache_key_prefix]
end
cache_key_prefix=(cache_key_prefix) click to toggle source
# File lib/simple_json.rb, line 49
def cache_key_prefix=(cache_key_prefix)
  config[:cache_key_prefix] = cache_key_prefix
end
disable_template_cache() click to toggle source
# File lib/simple_json.rb, line 28
def disable_template_cache
  config[:template_cache_enabled] = false
  SimpleJsonRenderer.clear_renderers
end
enable_template_cache() click to toggle source
# File lib/simple_json.rb, line 24
def enable_template_cache
  config[:template_cache_enabled] = true
end
json_module() click to toggle source
# File lib/simple_json.rb, line 53
def json_module
  @json_module ||= config[:default_json_module]
end
template_cache_enabled?() click to toggle source
# File lib/simple_json.rb, line 33
def template_cache_enabled?
  config[:template_cache_enabled]
end
template_paths() click to toggle source
# File lib/simple_json.rb, line 37
def template_paths
  config[:template_paths]
end
template_paths=(template_paths) click to toggle source
# File lib/simple_json.rb, line 41
def template_paths=(template_paths)
  config[:template_paths] = template_paths
end