[pry] add rot13 method
change
commit ca20df132c075095c30c916ac2cab2c7e77a197a
author Alpha Chen <alpha@kejadlen.dev>
date
parent 0a3de81e
diff --git a/.pryrc b/.pryrc
index 5b010430..cb737f83 100644
--- a/.pryrc
+++ b/.pryrc
@@ -22,6 +22,7 @@ end
 
 def tic; @_tic = Time.now; end
 def toc; Time.now - @_tic; end
+def rot13(s=nil); s ||= `pbpaste`; s.tr("A-Za-z","N-ZA-Mn-za-m"); end
 
 Pry::Commands.command /^$/, "repeat last command" do
   _pry_.input = StringIO.new(Pry.history.to_a.last)