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
Ruby Chocolate
Search
jinroq
May 22, 2019
0
260
Ruby Chocolate
After RubyKaigi in Fukuoka(Fukuoka.rb #135)
jinroq
May 22, 2019
Tweet
Share
More Decks by jinroq
See All by jinroq
Fukuoka.rb 2023 年度活動報告
jinroq
0
400
TRICK 2022 に入選した話
jinroq
0
220
RubyKaigiとMicrosoftと私
jinroq
0
180
msgraph: Microsoft Graph API Client with Ruby
jinroq
0
270
Fukuoka.rb 2019活動報告・2020抱負
jinroq
0
250
福岡の方から参りました Fukuoka.rb です
jinroq
0
1.7k
Microsoft Graph API Client and OpenAPI
jinroq
0
960
Fukuoka.rb #150 LT
jinroq
0
260
5 分で分かるアイキューブドシステムズ
jinroq
0
540
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.2k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
Rails Girls Zürich Keynote
gr2m
94
13k
Writing Fast Ruby
sferik
628
61k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Being A Developer After 40
akosma
87
590k
Designing for Performance
lara
604
68k
Designing on Purpose - Digital PM Summit 2013
jponch
116
7k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
111
49k
Transcript
Ruby Chocolate After RubyKaigi in Fukuoka (Fukuoka.rb #135) ODA Hirohito
Ruby Chocolate Λ ͝ଘͰ͔͢ʁ
Ruby Chocolate ͱʁ • εΠεͷόϦʔɾΧϨϘʔ͕ࣾ 2017 9 ݄ʹൃදͨ͠νϣίϨʔτ •
ੈؒతʹʮୈ 4 ͷνϣίϨʔτʯͱͯ͠ ʹͳͬͨ https://trend.nikkeibp.co.jp/atcl/trn/pickup/15/1008498/020601134/?rt=nocnt
ͦͷଞͷνϣίϨʔτ ͱ͔ఴՃͱ͔ҧ͏Β͍͠ https://suit-chocolate.com/post-1151/
Ruby Chocolate ͱʁ • ʮϧϏʔΧΧΦ౾ʯΛݪྉͱͯ͠͞ΕΔ νϣίϨʔτͷ͜ͱ • ʮϧϏʔΧΧΦ౾ʯΛ༻͍ͯ͠Εྔ ఴՃͳͲ֎ࢹͯ͠ “Ruby
Chocolate” ͱݺশͯ͠ྑͦ͞͏ʢͳؾ͕͢Δʣ
ͭ·Γ… Ruby Chocolate ϧϏʔ৭ͷΧΧΦ౾Λ ༻͍ͯ͠Δ͔Β Ruby Chocolate
ϧϏʔ৭ʹછ·͍ͬͯΕྑ͍
ruby_chocolate • https://rubygems.org/gems/ ruby_chocolate • https://github.com/jinroq/ruby_chocolate
σϞ
ruby_chocolate module RubyChocolate def puts(*args) super("\e[35m#{args.join}\e[45m\e[0m") end end
ݩʑ͜͏ॻ͍ͯͨ module RubyChocolate class Object alias :__puts__ :puts def puts(*args)
__puts__("\e[35m#{args.join}\e[45m\e[0m") end private :__puts__ end end
Ͱɻɻɻ
ຊʹΓ͔ͨͬͨ͜ͱͱ গ͠ҧ͏
ຊʹΓ͔ͨͬͨ͜ͱ • ඪ४ग़ྗʢ$stdoutʣΛΠϯλʔηϓτ • ඪ४Τϥʔग़ྗʢ$stderrʣΛΠϯλʔηϓτ
ຊʹΓ͔ͨͬͨ͜ͱ • ඪ४ग़ྗʢ$stdoutʣΛΠϯλʔηϓτ • ඪ४Τϥʔग़ྗʢ$stderrʣΛΠϯλʔηϓτ Ruby ʹڧ͍ਓɺڭ͍͑ͯͩ͘͞
·ͱΊ • ʮRuby ΛΩϝΔͱؾ͍͍࣋ͪʯΒ͍͚͠Ͳ ئ͍Θͣ • ʮRuby ΛΩϝΔʯΛखܰʹ࣮ݱ͢Δํ๏Λ ڭ͍͑ͯͩ͘͞