You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The extension API could be streamlined and thought out more. It doesn't have to be perfect but this might be a good opportunity to try out the DSL features of ruby.
Whilst I'm not in favour of the instance_eval() which yields a block like API akin to:
Class::new do |c|
c.title = "xxx"
c.desciption = File.open("xx.txt")
end
I do like the idea of modifying the core ruby syntax to be a bit more Lewt Extension tailored within the context of a LEWT Extension. For example the options & the command could be set like this:
MyExt < LewtExtension
options ++ :param {
:default => false,
:definitions => "what this option is about",
:type => String
}
command :my_command
end
The text was updated successfully, but these errors were encountered:
The extension API could be streamlined and thought out more. It doesn't have to be perfect but this might be a good opportunity to try out the DSL features of ruby.
Whilst I'm not in favour of the
instance_eval()
which yields a block like API akin to:I do like the idea of modifying the core ruby syntax to be a bit more Lewt Extension tailored within the context of a LEWT Extension. For example the options & the command could be set like this:
The text was updated successfully, but these errors were encountered: