Sha256: 3d5d4e23119a7e458466d2697e46f1855cf8ca1e6337719fcd0df839405b44bb
Contents?: true
Size: 381 Bytes
Versions: 2
Compression:
Stored size: 381 Bytes
Contents
require 'populus/accepter' module Populus module Helpers extend self def define_helper(name, &block) m = Module.new do define_method(name, &block) end Populus.logger.info "Register helper: #{name}" Accepter::Base.send :include, m end end end Dir.glob("#{File.dirname __FILE__}/helpers/*.rb").each do |helper| require helper end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
populus-0.0.4 | lib/populus/helpers.rb |
populus-0.0.3 | lib/populus/helpers.rb |