Configure Mr Bones using the given block of code. If a block is not given, the Bones module is returned.
# File lib/bones.rb, line 103 103: def Bones( &block ) 104: 105: # we absolutely have to have the bones plugin 106: plugin_names = ::Bones.plugin_names 107: ::Bones.plugin :bones_plugin unless plugin_names.empty? or plugin_names.include? :bones_plugin 108: 109: plugins = ::Bones.initialize_plugins.values 110: return ::Bones unless block 111: 112: extend_method = Object.instance_method(:extend).bind(::Bones.config) 113: plugins.each { |plugin| 114: ps = plugin.const_get :Syntax rescue next 115: extend_method.call ps 116: } 117: 118: instance_eval_method = Object.instance_method(:instance_eval).bind(::Bones.config) 119: instance_eval_method.call(&block) 120: 121: plugins.each { |plugin| plugin.post_load if plugin.respond_to? :post_load } 122: plugins.each { |plugin| plugin.define_tasks if plugin.respond_to? :define_tasks } 123: 124: rakefiles = Dir.glob(File.join(Dir.pwd, ]tasks *.rake])).sort 125: rakefiles.each {|fn| Rake.application.add_import(fn)} 126: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.