From afdedcc50168208c7f6da855d7dbce9a0ad0e8fa Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 2 Jan 2023 12:28:23 +0100 Subject: irb: removed unneeded methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .irbrc | 13 ------------- 1 file changed, 13 deletions(-) (limited to '.irbrc') diff --git a/.irbrc b/.irbrc index 22a6e03..1c3ea4a 100644 --- a/.irbrc +++ b/.irbrc @@ -18,7 +18,6 @@ require 'irb/completion' require 'irb/ext/save-history' require 'rubygems' -require 'pp' # Colorize! # rubocop:disable Lint/SuppressedException @@ -44,19 +43,7 @@ IRB.conf[:AUTO_INDENT] = true # Use readline IRB.conf[:USE_READLINE] = true -# List object methods -def local_methods(obj = self) - (obj.methods - obj.class.superclass.instance_methods).sort -end - # Reload this .irbrc def reload! load __FILE__ end - -# Beautify ls -def ls - `ls`.split("\n") -end - -alias p pp -- cgit v1.2.3