Sha256: 7ce2a2c515e2e444b4b0cc38d22b0d47fa1cb152572dcba2e57d7f95052dbcea

Contents?: true

Size: 409 Bytes

Versions: 6

Compression:

Stored size: 409 Bytes

Contents

module Mack
  # Allows hook methods for the loading of the environment.
  module Environment
    include Extlib::Hook
    
    # Requires the Mack application classes only once.
    # This is the method you want to add 'hooks' on for 
    # application load setup.
    def self.load
      ivar_cache do
        require File.join(File.dirname(__FILE__), "..", "..", "mack_app")
      end
    end
    
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mack-0.7.1.1 lib/mack/initialization/environment.rb
mack-0.7.1 lib/mack/initialization/environment.rb
mack-0.8.0.100 lib/mack/initialization/environment.rb
mack-0.8.0.101 lib/mack/initialization/environment.rb
mack-0.8.0 lib/mack/initialization/environment.rb
mack-0.8.0.2 lib/mack/initialization/environment.rb