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
Scaling GitHub
holman
458
140k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
27
4.3k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
Code Review Best Practice
trishagee
64
17k
How GitHub (no longer) Works
holman
310
140k
Automating Front-end Workflow
addyosmani
1366
200k
It's Worth the Effort
3n
183
27k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
720
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 ΛΩϝΔʯΛखܰʹ࣮ݱ͢Δํ๏Λ ڭ͍͑ͯͩ͘͞