class OpenGraphReader::Object::Registry
Global registry of namespaces and their representing classes. Also tracks which verticals are defined.
@api private
Attributes
verticals[R]
@see Registry.verticals
Public Class Methods
new()
click to toggle source
# File lib/open_graph_reader/object/registry.rb, line 52 def initialize @namespaces = {} @verticals = Set.new end
Public Instance Methods
[](namespace)
click to toggle source
@see Registry.[]
# File lib/open_graph_reader/object/registry.rb, line 58 def [] namespace raise UnknownNamespaceError, "#{namespace} is not a registered namespace" unless registered? namespace @namespaces[namespace] end