4 ms·
DSel: DSL/API/Abstract-Interface Generator and Runner for Ruby
- tasos_laskos 3y agoYou can use DSeL (pronounced Diesel -- best I could do) to: Safely interact with any object as if you were operating within it. No need to keep typing obj.* to work on obj. Unsafely re-open (almost) any object like you re-open a Class and mess about it there. Define clean APIs for 3rd party functionality via a DSL. Documentation can be generated dynamically using API tree data. Access APIs via a DSL. Allows for scripting etc. Create custom DSLs. For a practical example see: https://gist.github.com/Zapotek/a5393018391c7cc2e91c680797478a75 https://gist.github.com/Zapotek/a5393018391c7cc2e91c68079747... For more practical examples: https://documentation.ecsypno.com/deployment/scripted.html https://documentation.ecsypno.com/deployment/scripted.html https://documentation.ecsypno.com/interfaces/ruby-api/index.html https://documentation.ecsypno.com/interfaces/ruby-api/index.... And also: https://github.com/qadron/dsel/tree/master/examples/ https://github.com/qadron/dsel/tree/master/examples/