module Ripl
Constants
- VERSION
Public Class Methods
config()
click to toggle source
# File lib/ripl.rb, line 2 def self.config @config ||= { :readline => true, :riplrc => ENV['RIPL_RC'] || '~/.riplrc', :completion => {} } end
plugins()
click to toggle source
# File lib/ripl.rb, line 10 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
shell(options={})
click to toggle source
# File lib/ripl.rb, line 16 def self.shell(options={}) @shell ||= Shell.create(config.merge!(options)) end
start(*args)
click to toggle source
# File lib/ripl.rb, line 7 def self.start(*args) Runner.start(*args) end
started?()
click to toggle source
# File lib/ripl.rb, line 8 def self.started?() instance_variable_defined?(:@shell) end