$30 off During Our Annual Pro Sale. View Details »
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
390
TRICK 2022 に入選した話
jinroq
0
220
RubyKaigiとMicrosoftと私
jinroq
0
170
msgraph: Microsoft Graph API Client with Ruby
jinroq
0
260
Fukuoka.rb 2019活動報告・2020抱負
jinroq
0
250
福岡の方から参りました Fukuoka.rb です
jinroq
0
1.7k
Microsoft Graph API Client and OpenAPI
jinroq
0
950
Fukuoka.rb #150 LT
jinroq
0
260
5 分で分かるアイキューブドシステムズ
jinroq
0
530
Featured
See All Featured
Speed Design
sergeychernyshev
25
640
Designing on Purpose - Digital PM Summit 2013
jponch
115
7k
Thoughts on Productivity
jonyablonski
67
4.3k
4 Signs Your Business is Dying
shpigford
181
21k
The Cult of Friendly URLs
andyhume
78
6.1k
Into the Great Unknown - MozCon
thekraken
33
1.5k
A Philosophy of Restraint
colly
203
16k
Designing Experiences People Love
moore
138
23k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
880
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
28
2k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Music & Morning Musume
bryan
46
6.2k
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 ΛΩϝΔʯΛखܰʹ࣮ݱ͢Δํ๏Λ ڭ͍͑ͯͩ͘͞