module Barrel
Constants
- VERSION
Public Class Methods
find(title)
click to toggle source
# File lib/barrel.rb, line 14 def self.find(title) store = Barrel::Store.find_by(title: title) store.nil? ? nil : store.value end
store(title, value)
click to toggle source
# File lib/barrel.rb, line 7 def self.store(title, value) store = Barrel::Store.find_or_initialize_by(title: title) store.value = value store.save end