Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
ruby/prelude.rb /
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
31 lines (25 sloc)
471 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Binding | |
# :nodoc: | |
def irb | |
require 'irb' | |
irb | |
end | |
# suppress redefinition warning | |
alias irb irb # :nodoc: | |
end | |
module Kernel | |
def pp(*objs) | |
require 'pp' | |
pp(*objs) | |
end | |
# suppress redefinition warning | |
alias pp pp # :nodoc: | |
private :pp | |
end | |
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 |