Sha256: 6a90d2fbc5cd6d2782942cf306c6f2be5034cb2cf127159a8a5c88c822a090ff

Contents?: true

Size: 325 Bytes

Versions: 1

Compression:

Stored size: 325 Bytes

Contents

# frozen_string_literal: true

require "shellable/version"

# Shellable
module Shellable
  def self.open(context)
    context.extend(self).open_shell
  end

  def open_shell
    require "irb"
    IRB.setup nil
    IRB.conf[:MAIN_CONTEXT] = IRB::Irb.new.context
    require "irb/ext/multi-irb"
    IRB.irb nil, self
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shellable-0.0.4 lib/shellable.rb