Method: JsonCache::MethodCache#make_class
- Defined in:
- lib/json_cache/method_cache.rb
#make_class ⇒ Object
24 25 26 27 28 29 |
# File 'lib/json_cache/method_cache.rb', line 24 def make_class b = class_blk || lambda { |x| } cls = Class.new(JsonCache::CallResult,&b) Object.const_set(class_name,cls) cls end |