Parent

Class Index [+]

Quicksearch

Merb::Rack::Irb

Public Class Methods

start(opts={}) click to toggle source

Parameters

opts:

  Options for IRB. Currently this is not used by the IRB adapter.

Notes

If the .irbrc file exists, it will be loaded into the IRBRC environment variable.

:api: plugin

     # File lib/merb-core/rack/adapter/irb.rb, line 191
191:       def self.start(opts={})
192:         m = Merb::Rack::Console.new
193:         m.extend Merb::Test::RequestHelper
194:         m.extend ::Webrat::Methods if defined?(::Webrat)
195:         Object.send(:define_method, :merb) { m }
196:         ARGV.clear # Avoid passing args to IRB
197:         m.open_sandbox! if sandboxed?
198:         require 'irb'
199:         require 'irb/completion'
200:         if File.exists? ".irbrc"
201:           ENV['IRBRC'] = ".irbrc"
202:         end
203:         IRB.start
204:         at_exit do merb.close_sandbox! if sandboxed? end
205:         exit
206:       end

Private Class Methods

sandboxed?() click to toggle source

:api: private

     # File lib/merb-core/rack/adapter/irb.rb, line 211
211:       def self.sandboxed?
212:         Merb::Config[:sandbox]
213:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.