class T12n::SchemaStore

Attributes

schema_by_name[R]

Public Class Methods

new() click to toggle source
# File lib/t12n/schema_store.rb, line 5
def initialize
  @schema_by_name = {}
end

Public Instance Methods

fetch(name) click to toggle source
# File lib/t12n/schema_store.rb, line 14
def fetch(name)
  schema_by_name[name]
end
save(schema) click to toggle source
# File lib/t12n/schema_store.rb, line 9
def save(schema)
  schema_by_name[schema.name] = schema
  :ok
end