Sha256: 993feb90d1d928a14f91bef097c2393ffce2ac79858b0143481040130e95d128

Contents?: true

Size: 519 Bytes

Versions: 6

Compression:

Stored size: 519 Bytes

Contents

require 'rack/test'
class Pancake::Console
  attr_accessor :app
  include Rack::Test::Methods

  def initialize(stack)
    @stack    = stack
    @app      = stack.stackup(:master => true)
    app = self
    Object.__send__(:define_method, :stack){ app }
    Pancake.handle_errors! true
    Pancake.configuration.log_to_file = false

    require 'irb'
    require 'irb/completion'
    if File.exists? ".irbrc"
      ENV['IRBRC'] = ".irbrc"
    end

    catch(:IRB_EXIT) do
      IRB.start
      exit
    end
  end
end


Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pancake-0.1.20 lib/pancake/console.rb
pancake-0.1.19 lib/pancake/console.rb
pancake-0.1.18 lib/pancake/console.rb
pancake-0.1.17 lib/pancake/console.rb
pancake-0.1.16 lib/pancake/console.rb
pancake-0.1.15 lib/pancake/console.rb