class Mmtrix::Control::Frameworks::Merb
Includes limited support for Merb
Public Instance Methods
env()
click to toggle source
# File lib/mmtrix/control/frameworks/merb.rb, line 11 def env @env ||= ::Merb.env end
init_config(options={})
click to toggle source
# File lib/mmtrix/control/frameworks/merb.rb, line 18 def init_config options={} ::Merb::Plugins.add_rakefiles File.join(mmtrix_root,"lib/tasks/all.rb") # Merb gives you a Merb::Plugins.config hash...feel free to put your stuff in your piece of it ::Merb::Plugins.config[:mmtrix] = { :config => self } end
root()
click to toggle source
# File lib/mmtrix/control/frameworks/merb.rb, line 14 def root ::Merb.root end