Module: IRB
- Defined in:
- lib/irb.rb,
lib/irb/driver.rb,
lib/irb/source.rb,
lib/irb/context.rb,
lib/irb/version.rb,
lib/irb/formatter.rb,
lib/irb/deprecated.rb,
lib/irb/driver/tty.rb,
lib/irb/ext/history.rb,
lib/irb/ext/macruby.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
-
.formatter ⇒ Object
Returns the value of attribute formatter.
Class Method Summary collapse
- .conf ⇒ Object
- .deprecated(message, caller) ⇒ Object
- .deprecated_feature(old_feature, new_feature, caller) ⇒ Object
-
.start ⇒ Object
(also: setup)
This is just here for so the ruby 1.9 IRB will seemingly work, but actually loads DietRB, how cunning…
- .version ⇒ Object
Class Attribute Details
.formatter ⇒ Object
Returns the value of attribute formatter.
9 10 11 |
# File 'lib/irb/formatter.rb', line 9 def formatter @formatter end |
Class Method Details
.conf ⇒ Object
11 12 13 |
# File 'lib/irb/deprecated.rb', line 11 def self.conf @conf ||= DeprecatedConf.new end |
.deprecated(message, caller) ⇒ Object
2 3 4 5 |
# File 'lib/irb/deprecated.rb', line 2 def self.deprecated(, caller) caller = caller.first.split(':')[0..-2].join(':') warn "[!] Deprecation warning from #{caller}: #{}" end |
.deprecated_feature(old_feature, new_feature, caller) ⇒ Object
7 8 9 |
# File 'lib/irb/deprecated.rb', line 7 def self.deprecated_feature(old_feature, new_feature, caller) deprecated "Usage of #{old_feature} will be deprecated, #{new_feature}", caller end |
.start ⇒ Object 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.
23 24 25 26 |
# File 'lib/irb.rb', line 23 def start(*) warn "[!] Note that you are now actually using DietRB (#{IRB::VERSION::STRING})\n" load File.('../../bin/dietrb', __FILE__) end |
.version ⇒ Object
18 19 20 |
# File 'lib/irb/version.rb', line 18 def self.version IRB::VERSION::DESCRIPTION end |