Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Pry: IRB on vitamins
Search
iamjarvo
August 14, 2012
Programming
2
130
Pry: IRB on vitamins
Pry is a REPL that is an alternative to IRB.
iamjarvo
August 14, 2012
Tweet
Share
More Decks by iamjarvo
See All by iamjarvo
Git productivity and tricks
iamjarvo
2
180
Other Decks in Programming
See All in Programming
実は歴史的なアップデートだと思う AWS Interconnect - multicloud
maroon1st
0
310
Vibe codingでおすすめの言語と開発手法
uyuki234
0
180
CSC307 Lecture 04
javiergs
PRO
0
630
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
0
490
MDN Web Docs に日本語翻訳でコントリビュート
ohmori_yusuke
0
450
從冷知識到漏洞,你不懂的 Web,駭客懂 - Huli @ WebConf Taiwan 2025
aszx87410
2
3.4k
公共交通オープンデータ × モバイルUX 複雑な運行情報を 『直感』に変換する技術
tinykitten
PRO
0
180
Basic Architectures
denyspoltorak
0
200
Pythonではじめるオープンデータ分析〜書籍の紹介と書籍で紹介しきれなかった事例の紹介〜
welliving
3
780
The Art of Re-Architecture - Droidcon India 2025
siddroid
0
160
DevFest Android in Korea 2025 - 개발자 커뮤니티를 통해 얻는 가치
wisemuji
0
180
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
400
Featured
See All Featured
So, you think you're a good person
axbom
PRO
1
1.9k
What the history of the web can teach us about the future of AI
inesmontani
PRO
0
400
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.3k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
140
Discover your Explorer Soul
emna__ayadi
2
1k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Color Theory Basics | Prateek | Gurzu
gurzu
0
170
AI: The stuff that nobody shows you
jnunemaker
PRO
2
170
[SF Ruby Conf 2025] Rails X
palkan
0
710
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
115
100k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
430
Un-Boring Meetings
codingconduct
0
180
Transcript
Pry IRB on vitamins
Who am I? • Jearvon Dharrie • Twitter: @jearvon •
irc: iamjarvo
What is pry? • REPL(read, eval, print loop) • Powerful
alternative to IRB
High level view • Syntax highlighting / Proper Indentation •
Customizable • Quick documentation lookup • Quick monkey patching • Great debugging tool • Gist capabilities
Pry in my day to day • Debugging • Documentation
lookup
Installation • gem i pry pry-doc (reading stuff written in
c) • pry • help
Now the cool stuff!
Documentaion • show-doc Array#take_while • a = [1, 2, 3]
• show-doc a.take_while
Viewing Source • show-source Array#take_while -l • a = [1,2,3]
• show-source a.take_while -l
Gist • Install jist gem ( https://github.com/conradirwin/) • jist --login
• gist -m Array#take_while • gist -m a.take_while
Easily cd into a gem • gem-cd “gem name”
Shell commands • Prefix commands with . • .pwd •
.ls
REPL capabilities • input buffer multiline text waiting to be
completed • ! clears input buffer • show-input => shows the current input buffer • amend-line N replacement
Navigating around • cd object • ls • can grep
output of ls • ls -h
Patching on the fly
Current state
Rails console • Alias pryr to launch pry with rails
environment • pry -r ./config/environment
Plugins • pry-debugger • pry-remote • pry-stack_explorer • pry-theme •
pry-debundle
.pryrc • Alias commands • set colorscheme
From here • #pry on freenode • give it a
pry!