Sha256: 5eb3a185274f9cc42ecee37ae63ec85903051bb213cfc5a524900e85a0857749

Contents?: true

Size: 694 Bytes

Versions: 7

Compression:

Stored size: 694 Bytes

Contents

module Ripl
  def self.config
    @config ||= {:readline => true, :riplrc => '~/.riplrc', :completion => {}}
  end

  def self.start(*args) Runner.start(*args) end
  def self.started?()   instance_variable_defined?(:@shell) end

  def self.plugins
    file =  File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
    $".map {|e| e[/ripl\/[^\/]+$/] }.compact -
      Dir["#{File.dirname(file)}/ripl/*.rb"].map {|e| e[/ripl\/[^\/]+$/] }
  end

  def self.shell(options={})
    @shell ||= Shell.create(config.merge!(options))
  end

  module Commands
    class<<self; public :include; end
  end
end

require 'ripl/shell'
require 'ripl/runner'
require 'ripl/history'
require 'ripl/version'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ripl-0.6.1 lib/ripl.rb
ripl-0.6.0 lib/ripl.rb
ripl-0.5.1 lib/ripl.rb
ripl-0.5.0 lib/ripl.rb
ripl-0.4.2 lib/ripl.rb
ripl-0.4.1 lib/ripl.rb
ripl-0.4.0 lib/ripl.rb