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
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
RaaP
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
ksss
May 08, 2024
Programming
800
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
RaaP
ksss
May 08, 2024
More Decks by ksss
See All by ksss
Railsの型ファイル自動生成における課題と解決
ksss
4
5.6k
RBS generation framework using Rack architecture
ksss
1
8k
mrubyでruby/specを走らせてみた結果www
ksss
1
2.6k
Rubyに型があると便利か
ksss
4
4.8k
A New Testing Framework Rgot
ksss
0
1.3k
mruby hacking guide
ksss
7
2k
Other Decks in Programming
See All in Programming
GKE アップグレード前に知っておきたい Blue/Green と PDB の関係
stkk
0
160
数年滞っていたダークモード対応をおよそ2週間で完了させる
chigichan24
0
690
20260828_品質と開発生産性を両立させる、AI時代のE2Eテストの考え方
magicpod
0
170
ALB ログから Trace を気合で繋げる技術
fohte
7
880
Intent as Code
shoppingjaws
2
480
The Good Stuff, Not the Slop: Engineering High-Quality Android Apps with Modern AI Tooling
danybony
1
210
AIの中の人になってみる
htkym
0
170
Swift愛好会100回記念 第1回を振り返る
jollyjoester
0
120
新卒PdEのリアル
ryu1013
1
440
LLMは4年分のCompose移行を再現できるのか?実プロダクト279件のXMLで探る自動化の境界線
makun
0
440
XHTMLが残したもの
yosuke_furukawa
PRO
2
460
AI時代に学ぶ 好きなルール 嫌いなルール Linter編
shorty5121
0
890
Featured
See All Featured
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.1k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
4
600
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
250
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
410
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
290
Site-Speed That Sticks
csswizardry
13
1.5k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.3k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
490
Rails Girls Zürich Keynote
gr2m
96
14k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
600
The Spectacular Lies of Maps
axbom
PRO
1
980
sira's awesome portfolio website redesign presentation
elsirapls
0
410
Transcript
ksss Run your RBS like a testing code. RBS as
a Property
RBS as a Property ✒ RBS class MyClass def my_method:
(Integer, Integer) -> Integer end
RBS as a Property 🍎 Property 100.times do int1 =
Random.rand(100) int2 = Random.rand(100) result = MyClass.new.my_method(int1, int2) assert_kind_of Integer, result end
RBS as a Property ✒🍎
RBS as a Property Gener a te test c a
se by RBS And execute code a utom a tic a lly
https://github.com/ksss/raap This is the RaaP
Demo
Edit RBS (Add one overload) class MyClass def my_method: (Integer,
Integer) -> Integer | (Float, Float) -> Float end
You can run RBS instantly!
If the RBS is wrong? class MyClass def my_method: (Integer,
String) -> Integer end
It detects failures and also displays reproduction codes.
Support Union type class MyClass def my_method: (0 | 1
| 2, 3 | 4 | 5) -> Integer end
Choose one of the Unions and run it. With coverage!
RBS as a Property RaaP