module Tomify

Constants

VERSION

Public Class Methods

root() click to toggle source
# File lib/tomify.rb, line 50
def self.root
  Pathname.new Gem::Specification.find_by_name("tomify").gem_dir
end
setting(name) click to toggle source
# File lib/tomify.rb, line 54
def self.setting(name)
  Tomify.models.setting.find_by(name: name).try(:value)
end