Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Pry: IRB on vitamins
Search
iamjarvo
August 14, 2012
Programming
140
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Pry: IRB on vitamins
Pry is a REPL that is an alternative to IRB.
iamjarvo
August 14, 2012
Transcript
20 slides
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!
More Decks by iamjarvo
See All by iamjarvo
Git productivity and tricks
iamjarvo
2
190
Other Decks in Programming
See All in Programming
Crash Auto Pipelines
veronikapj
1
450
眠らない開発チームの作り方
biwakonbu
0
110
Going Full Circle with Virtual Graphs and Relational Databases
michaelsimons
1
110
LLM 101: Exploring LLMs, Starting with Tokens.
dalinaum
0
120
数行の変更でDockerビルドを最大91%高速化~GitLab CIの実行基盤を社内40リポジトリに展開するまで~
picopico
3
340
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
860
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
1.1k
Scalaの型でマルチテナントの認可を守る
nextbeatdev
0
180
Distance field of Julia set
kinakomoti321
0
330
SODA - FACT BOOK(EN)
sodainc
1
280
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
420
AIコーディング時代のKotest ユニットテストから APIレベルの仕様固定化テストへ
ooga04
0
330
Featured
See All Featured
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
580
Web Performance Is a Journey [PerfNow 2026]
tammyeverts
2
150
How to make the Groovebox
asonas
2
2.6k
The browser strikes back
jonoalderson
0
2k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
880
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
ラッコキーワード サービス紹介資料
rakko
5
6M
WCS-LA-2024
lcolladotor
0
1k
エンジニアに許された特別な時間の終わり
watany
109
250k
Highjacked: Video Game Concept Design
rkendrick25
PRO
2
600
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
6
970