Module: IRB

Defined in:
lib/irb/version.rb,
lib/irb.rb,
lib/irb/driver.rb,
lib/irb/source.rb,
lib/irb/context.rb,
lib/irb/formatter.rb,
lib/irb/deprecated.rb,
lib/irb/driver/tty.rb,
lib/irb/ext/history.rb,
lib/irb/ext/colorize.rb,
lib/irb/driver/socket.rb,
lib/irb/ext/completion.rb,
lib/irb/driver/readline.rb

Overview

MacRuby implementation of IRB.

This file is covered by the Ruby license. See COPYING for more details.

Copyright © 2009-2010, Eloy Duran <[email protected]>

Portions Copyright © 2006-2010 Paul Duncan <[email protected]> (Wirble) Portions Copyright © 2009-2010 Jens Wille <[email protected]> (Wirble) Portions Copyright © 2006-2010 Giles Bowkett (light background color scheme)

Defined Under Namespace

Modules: Driver, History, VERSION Classes: ColoredFormatter, Completion, Context, DeprecatedConf, Formatter, Source

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.formatterObject

Returns the value of attribute formatter.



9
10
11
# File 'lib/irb/formatter.rb', line 9

def formatter
  @formatter
end

Class Method Details

.confObject



12
13
14
# File 'lib/irb/deprecated.rb', line 12

def self.conf
  @conf ||= DeprecatedConf.new
end

.deprecated(message, caller) ⇒ Object



2
3
4
5
6
# File 'lib/irb/deprecated.rb', line 2

def self.deprecated(message, caller)
  return unless $DEBUG
  caller = caller.first.split(':')[0..-2].join(':')
  warn "[!] Deprecation warning from #{caller}: #{message}"
end

.deprecated_feature(old_feature, new_feature, caller) ⇒ Object



8
9
10
# File 'lib/irb/deprecated.rb', line 8

def self.deprecated_feature(old_feature, new_feature, caller)
  deprecated "Usage of #{old_feature} will be deprecated, #{new_feature}", caller
end

.startObject Also known as: setup

This is just here for so the ruby 1.9 IRB will seemingly work, but actually loads DietRB, how cunning…

This will obviously be removed once we’ve conquered the world.



20
21
22
23
# File 'lib/irb.rb', line 20

def start(*)
  warn "[!] Note that you are now actually using DietRB (#{IRB::VERSION::STRING})\n"
  load File.expand_path('../../bin/dietrb', __FILE__)
end

.versionObject



18
19
20
# File 'lib/irb/version.rb', line 18

def self.version
  IRB::VERSION::DESCRIPTION
end