Takashi Kokubun
232433f224
[ruby/irb] Add whereami command
...
bc822e4aac
2021-03-21 13:40:21 +09:00
Takashi Kokubun
5f72962a09
[ruby/irb] Implement ls command
...
19b6c20604
2021-03-21 12:59:51 +09:00
aycabta
0428c2e7df
[ruby/irb] Define "measure" command without forced override
...
9587ba13b5
2021-03-19 23:34:34 +09:00
Nobuyoshi Nakada
4b6e3f7b82
irb: Define extension command on the given object
2020-12-20 19:35:59 +09:00
Nobuyoshi Nakada
feea436feb
irb: Define extension command only on the given object
...
Not to interfer in class variables.
2020-12-20 18:26:38 +09:00
aycabta
9f08e3c703
[ruby/irb] Add measure command
...
You can use "measure" command to check performance in IRB like below:
irb(main):001:0> 3
=> 3
irb(main):002:0> measure
TIME is added.
=> nil
irb(main):003:0> 3
processing time: 0.000058s
=> 3
irb(main):004:0> measure :off
=> nil
irb(main):005:0> 3
=> 3
You can set "measure :on" by "IRB.conf[:MEASURE] = true" in .irbrc, and, also,
set custom performance check method:
IRB.conf[:MEASURE_PROC][:CUSTOM] = proc { |context, code, line_no, &block|
time = Time.now
result = block.()
now = Time.now
puts 'custom processing time: %fs' % (Time.now - time) if IRB.conf[:MEASURE]
result
}
3899eaf2e2
2020-12-20 16:23:59 +09:00
Nobuyoshi Nakada
3198e7abd7
Separate send
into public_send
and __send__
2020-10-27 16:12:45 +09:00
aycabta
7e5253d15e
[ruby/irb] Suppress "method redefined" warning
...
5f0aee56fa
2020-04-29 19:13:14 +09:00
aycabta
98a346d065
[ruby/irb] Add irb_info command
...
a6fe58e916
2020-04-29 19:13:14 +09:00
Nobuyoshi Nakada
e68999c82c
Fixed misspellings
...
Fixed misspellings reported at [Bug #16437 ], for default gems.
2019-12-20 12:19:45 +09:00
Nobuyoshi Nakada
a506b7f35a
Adjusted indents and supplied last commas
...
Fixed unmatched indent of the closing bracket for
`:irb_current_working_workspace`, and adjusted following elements.
2019-08-28 16:08:14 +09:00
hsbt
6a08beef51
Removed math mode from irb.
...
mathn is deprecated from Ruby 2.2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-20 09:11:36 +00:00
naruse
3e92b635fb
Add frozen_string_literal: false for all files
...
When you change this to true, you may need to add more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-16 05:07:31 +00:00
hsbt
76515504d5
* lib/irb.rb: removed commented-out code.
...
* lib/irb/**/*.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-09 02:02:58 +00:00
hsbt
8e5af8b628
* lib/cmath.rb: fixed indent.
...
* lib/drb/ssl.rb: ditto.
* lib/irb/**/*.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-09 01:36:49 +00:00
zzak
7e9eb32669
* lib/irb.rb, lib/irb/*: Documentation for IRB
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-21 05:45:50 +00:00
zzak
8983315238
* lib/irb*: merge doc from doc/irb/ird.rd and improve overall
...
documentation of IRB
* doc/irb/irb.rd: remove stale documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-13 05:22:30 +00:00
nobu
b271ca8c62
* lib/irb/extend-command.rb (def_extend_command): fixed argument
...
number for negative arity.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-05 01:18:28 +00:00
keiju
c7fa0c727c
* bin/irb, lib/irb.rb lib/irb/*: irb-0.9.6, extend inspect-mode
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-07 11:36:20 +00:00
nobu
287a34ae0d
* {ext,lib,test}/**/*.rb: removed trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
mame
cba52ec37c
* lib/irb/extend-command.rb (def_extend_command): check number of
...
arguments. [ruby-dev:35074]
* lib/irb/ext/multi-irb.rb (search): check if a corresponding job is
found. [ruby-dev:35074]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-25 13:41:11 +00:00
matz
e6c1752137
* lib/rdoc.rb: massive spelling correction patch from Evan Farrar
...
<evanfarrar at gmail.com> in [ruby-doc:1382] applied.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04 09:37:38 +00:00
akr
6cdef2dc7e
* $Date$ keyword removed to avoid inclusion of locale dependent
...
string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-06 15:49:38 +00:00
matz
7e5324e6c1
* lib/irb/extend-command.rb (IRB::ExtendCommandBundle): pacify
...
RDoc. a patch from Eric Hodel <drbrain at segment7.net>.
[ruby-core:08522]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-08 15:17:06 +00:00
keiju
622b522047
* bin/irb lib/irb.rb lib/irb/...: IRB 0.9.5.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-13 15:27:09 +00:00
nobu
4d2f38b777
* ext/readline/readline.c: suppress warnings.
...
* lib/irb/extend-command.rb (IRB::ContextExtender.def_extend_command):
ditto.
* lib/irb/ext/history.rb (IRB::Context::set_last_value): ditto.
* lib/irb/ext/history.rb (IRB::Context::eval_history): ditto.
* lib/irb/locale.rb (IRB::Locale::real_load): ditto.
* lib/irb/slex.rb (SLex::Node::create_subnode): remove garbage.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-16 22:09:29 +00:00
nobu
0e692c450b
* lib/irb/extend-command.rb: add irb_help command. [ruby-talk:91610]
...
* lib/irb/cmd/help.rb (IRB::ExtendCommand::Help): show RDoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-06 00:16:50 +00:00
matz
89dbf99bac
* numeric.c (num_to_int): default to_int implementaion for every
...
numeric class.
* re.c (rb_reg_quote): initial part of the string was never copied
to the quoted string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-07-29 06:14:10 +00:00
keiju
af064b04b1
* irb 0.9
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-07-09 11:17:17 +00:00
knu
94df732f8b
Get rid of Japanese comments and fix English comments as appropriate.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-03 08:56:49 +00:00
knu
f8ab487e4d
Initial revision
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-30 17:38:21 +00:00