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
390
TRICK 2022 に入選した話
jinroq
0
210
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
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
What's new in Ruby 2.0
geeforr
343
31k
Building an army of robots
kneath
302
43k
Thoughts on Productivity
jonyablonski
67
4.3k
Facilitating Awesome Meetings
lara
50
6.1k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
It's Worth the Effort
3n
183
27k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
900
Automating Front-end Workflow
addyosmani
1366
200k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
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 ΛΩϝΔʯΛखܰʹ࣮ݱ͢Δํ๏Λ ڭ͍͑ͯͩ͘͞