module O3o::Store
Public Class Methods
list()
click to toggle source
# File lib/o3o/store.rb, line 6 def self.list return @store if @store @store = {} @store[:available] = [] yan.each do |y| @store[:available].push y["tag"] y["tag"].split.each do |t| @store[t] = y["yan"] end end @store end
yan()
click to toggle source
# File lib/o3o/store.rb, line 22 def self.yan @yan ||= JSON.load(IO.read(File.expand_path('../yan.json', __FILE__)))["list"] end