module Confix::RootClassMethods
Root class methods
Public Instance Methods
template(name, &block)
click to toggle source
Defines a reusable configuration template. If you specify a configuration you may refer to this template rather than specifying a block.
# File lib/confix.rb, line 152 def template(name, &block) raise ArgumentError, "block required" unless block templates[name.to_s] = block end
templates()
click to toggle source
# File lib/confix.rb, line 157 def templates @templates ||= {} end