class SimpleJSONSchema::Cache
Attributes
memory[R]
Public Class Methods
new()
click to toggle source
# File lib/simple_json_schema/cache.rb, line 7 def initialize @memory = {} end
Public Instance Methods
fetch(key) { || ... }
click to toggle source
# File lib/simple_json_schema/cache.rb, line 11 def fetch(key) memory[key] ||= yield end