Sha256: 7116f76ce0a910050bab66396d3135a4e58e8938bee043f92376ad0bc671b61a
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
module Docks module Renderers module Common module Helperable def helpers(*helpers) load_helpers = Module.new helpers.each do |helper| if helper.kind_of?(Module) self.send(:extend, helper) elsif File.exists?(helper) load_helpers.module_eval(File.read(helper), helper, 0) end end load_helpers.constants.each do |constant| self.send(:extend, load_helpers.const_get(constant)) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
docks_app-0.0.3 | lib/docks/renderers/common_features/helperable.rb |