Sha256: 20b6a12b04467234966e20e6d91e5b461bc0e25e46994b1b73c94569be099637
Contents?: true
Size: 720 Bytes
Versions: 5
Compression:
Stored size: 720 Bytes
Contents
module Ripl def self.config @config ||= { :readline => true, :riplrc => ENV['RIPL_RC'] || '~/.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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ripl-0.7.1 | lib/ripl.rb |
ripl-0.7.0 | lib/ripl.rb |
ripl-0.6.4 | lib/ripl.rb |
ripl-0.6.3 | lib/ripl.rb |
ripl-0.6.2 | lib/ripl.rb |