Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
Writing config files in Ruby
Grzegorz Witek
March 25, 2018
Technology
0
18
Writing config files in Ruby
Grzegorz Witek
March 25, 2018
Tweet
Share
More Decks by Grzegorz Witek
See All by Grzegorz Witek
arnvald
0
31
arnvald
1
24
arnvald
0
21
arnvald
2
23
arnvald
0
240
arnvald
0
14
arnvald
0
12
arnvald
0
13
arnvald
0
71
Other Decks in Technology
See All in Technology
supership
0
200
hmatsu47
1
170
fortkle
1
470
hgsgtk
1
860
oracle4engineer
0
130
kota2and3kan
2
320
kanaugust
PRO
0
210
ytaka23
4
1.4k
gracia
0
970
tutsunom
1
330
ahana
0
430
halhira
1
120
Featured
See All Featured
vanstee
118
4.9k
searls
204
37k
matthewcrist
73
7.5k
maltzj
502
36k
philnash
10
670
erikaheidi
14
4.5k
caitiem20
311
17k
chriscoyier
498
130k
andyhume
64
3.8k
holman
448
140k
schacon
147
6.7k
addyosmani
495
110k
Transcript
> < FOOTNOTE TEXT NOBODY READS WRITING CONFIG FILES IN
RUBY @ARNVALD, RUBYCONFTW 2018 1
CONFIG FILES? next 2
BORING!!! next 3
just use JSON / YAML / XML or store it
in the db next 4
configuration is static next 5
what if it has to be dynamic? next 6
is it still configuration? next 7
gem 'simple_configuration' next 8
github: arnvald/simple_configuration next 9
Challenge time! next 10
> < STILL NOTHING TO SEE HERE 11 MISSING_VALUE =
'__missing_value__' def config( config_name, default_value = MISSING_VALUE, &default_value_blk )
> < STILL NOTHING TO SEE HERE 12 engineering.kaligo.com