class Noraneko::Registry
Public Class Methods
new()
click to toggle source
# File lib/noraneko/registry.rb, line 5 def initialize @namespace = {} end
Public Instance Methods
delete(nconst)
click to toggle source
# File lib/noraneko/registry.rb, line 17 def delete(nconst) @namespace.delete(nconst.qualified_name) end
find(name)
click to toggle source
# File lib/noraneko/registry.rb, line 9 def find(name) @namespace[name] end
put(nconst)
click to toggle source
# File lib/noraneko/registry.rb, line 13 def put(nconst) @namespace[nconst.qualified_name] = nconst end
to_a()
click to toggle source
# File lib/noraneko/registry.rb, line 21 def to_a @namespace.values end