Object
# File lib/multi_json/adapter.rb, line 10 def defaults(action, value) metaclass = class << self; self; end metaclass.instance_eval do define_method("default_#{action}_options"){ value } end end
# File lib/multi_json/adapter.rb, line 41 def cache(method, options) cache_key = [self, options].map(&:hash).join + method MultiJson.cached_options[cache_key] ||= yield end
# File lib/multi_json/adapter.rb, line 32 def collect_dump_options(options) cache('dump', options){ collect_options(:dump_options, options).merge(options) } end
Generated with the Darkfish Rdoc Generator 2.