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
The Art of Programming - Codeland 2020
erikaheidi
53
13k
The Pragmatic Product Professional
lauravandoore
32
6.3k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
28
4.4k
Code Review Best Practice
trishagee
65
17k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Faster Mobile Websites
deanohume
305
30k
A better future with KSS
kneath
238
17k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
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 ΛΩϝΔʯΛखܰʹ࣮ݱ͢Δํ๏Λ ڭ͍͑ͯͩ͘͞