In Files

Files

Wirble::Internals

Load internal Ruby features, including pp, tab-completion, and a simple prompt.

Constants

LIBRARIES

list of internal libraries to automatically load

Public Class Methods

init(opt = nil) click to toggle source

Load all Ruby internal features.

# File lib/wirble.rb, line 58
def self.init(opt = nil)
  init_libraries unless opt && opt[:skip_libraries]
  init_prompt unless opt && opt[:skip_prompt]
end
init_libraries() click to toggle source

load libraries

# File lib/wirble.rb, line 35
def self.init_libraries
  LIBRARIES.each do |lib| 
    begin
      require lib 
    rescue LoadError
      nil
    end
  end
end
init_prompt() click to toggle source

Set a simple prompt, unless a custom one has been specified.

# File lib/wirble.rb, line 48
def self.init_prompt
  # set the prompt
  if IRB.conf[:PROMPT_MODE] == :DEFAULT
    IRB.conf[:PROMPT_MODE] = :SIMPLE
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.