Sha256: 990dbab823850967d09b7874d052c9b7b635bf0c95d27185a6e8e5b1c635df8b
Contents?: true
Size: 613 Bytes
Versions: 2
Compression:
Stored size: 613 Bytes
Contents
# Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. module Ramaze def self.contrib(*args) Ramaze::Contrib.load *args end module Contrib class << self def load(*contribs) contribs.each do |name| require 'ramaze/contrib'/name const = Ramaze::Contrib.const_get(name.to_s.camel_case) Ramaze::Global.contribs << const const.startup if const.respond_to?(:startup) Inform.dev "Loaded contrib: #{const}" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.2.1 | lib/ramaze/contrib.rb |
ramaze-0.2.0 | lib/ramaze/contrib.rb |