2017-01-05 22:11:45 -05:00
|
|
|
class Binding
|
2018-10-26 13:08:30 -04:00
|
|
|
# :nodoc:
|
2017-01-05 22:11:45 -05:00
|
|
|
def irb
|
|
|
|
require 'irb'
|
|
|
|
irb
|
|
|
|
end
|
2017-11-30 22:54:49 -05:00
|
|
|
|
|
|
|
# suppress redefinition warning
|
|
|
|
alias irb irb # :nodoc:
|
2017-01-05 22:11:45 -05:00
|
|
|
end
|
2017-11-29 20:31:00 -05:00
|
|
|
|
|
|
|
module Kernel
|
|
|
|
def pp(*objs)
|
|
|
|
require 'pp'
|
2017-11-29 21:12:42 -05:00
|
|
|
pp(*objs)
|
2017-11-29 20:31:00 -05:00
|
|
|
end
|
2017-11-30 22:54:49 -05:00
|
|
|
|
|
|
|
# suppress redefinition warning
|
|
|
|
alias pp pp # :nodoc:
|
2018-10-10 21:03:05 -04:00
|
|
|
|
|
|
|
private :pp
|
2017-11-29 20:31:00 -05:00
|
|
|
end
|
2022-02-17 04:02:42 -05:00
|
|
|
|
|
|
|
autoload :Set, 'set'
|
|
|
|
|
|
|
|
module Enumerable
|
|
|
|
# Makes a set from the enumerable object with given arguments.
|
|
|
|
def to_set(klass = Set, *args, &block)
|
|
|
|
klass.new(self, *args, &block)
|
|
|
|
end
|
|
|
|
end
|