https://github.com/sdalu/ruby-ucl
Parser for UCL configuration file
https://github.com/sdalu/ruby-ucl
Last synced: 2 months ago
JSON representation
Parser for UCL configuration file
- Host: GitHub
- URL: https://github.com/sdalu/ruby-ucl
- Owner: sdalu
- License: mit
- Created: 2022-12-19T13:02:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-02T15:39:13.000Z (6 months ago)
- Last Synced: 2025-03-25T21:29:21.231Z (2 months ago)
- Language: C
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This library allows parsing of configuration file in UCL format,
using the [libucl][1] library.Examples
========~~~ruby
UCL.flags = UCL::KEY_SYMBOL
UCL.load_file('foo.conf', UCL::KEY_SYMBOL | KEY_LOWERCASE)
UCL.parse(File.read('foo.conf'))
~~~Supported flags:
* KEY_SYMBOL
* KEY_LOWERCASE
* NO_TIME
* DISABLE_MACRO
* NO_FILEVARS[1]: https://github.com/vstakhov/libucl