0

How can I create some variables that can be used in different ruby scripts?

Is it too crazy to create a special ruby program containing these variables, include it in the scripts in which it is needed with the "require" method and edit it using the File class methods? I'm a complete beginner in programming and I didn't find anything similar around the internet. Thanks

11th Jul 2018, 3:48 PM
Davidede
Davidede - avatar
3 odpowiedzi
+ 2
I finally used Kirbybase to create a simple database
3rd Aug 2018, 4:25 PM
Davidede
Davidede - avatar
+ 1
kudos to you for posting your solution!
3rd Aug 2018, 4:54 PM
error on line 1
error on line 1 - avatar
0
or you maybe write some kind of 'plugin' that can be used in different projects and handles a config.json file? just an idea. similar approach but with a more standardized format.
23rd Jul 2018, 6:36 AM
error on line 1
error on line 1 - avatar