class Aspen::Adapters::Registry
Attributes
data[R]
Public Class Methods
get(key)
click to toggle source
# File lib/aspen/adapters.rb, line 29 def self.get(key) # @todo There's a better design for this. @@store ||= new.data @@store.fetch(key) end
new()
click to toggle source
# File lib/aspen/adapters.rb, line 20 def initialize @data ||= { cypher: Adapter.new(id: :cypher, name: "Cypher", ext: '.cql' ), json: Adapter.new(id: :json, name: "JSON", ext: '.json'), gexf: Adapter.new(id: :gexf, name: "GEXF", ext: '.gexf'), } Aspen.available_formats = @data.keys end