Add possibility to define reusable params.#550
Conversation
|
@dblock what do you think ? |
|
(edited) I like the part where you can define I am a bit worried that |
|
@dm1try Btw, whichever way we go, this is a very elegant approach - you, sir, are a Ruby 師匠 |
|
@dblock , thanks for feedback! module ApiHelpers
ALLOWED_METHODS = [:params]
def method_missing(name, *args, &block)
ALLOWED_METHODS.include?(name) ? save_lazy_methods : super
end
def api_changed(new_api)
call_lazy_methods
end
endThe problem is that we should extend helpers do
params do
end
end
desc 'Get'
params :params do
endAnd the main problem is that What do the community think? Should we continue?) |
|
About "serious refactoring", |
|
Ok, I think I agree with you, Do you think this should be defined as an inner class of Add README and CHANGELOG and I am happy to merge this. |
|
@dblock hey, thanks for suggestion. I put Can you take a look? |
There was a problem hiding this comment.
The extra dot after params is driving me crazy :)
|
Perfect, merging. |
Add possibility to define reusable params.
|
Great ❤️ |
Another one concept :)
Examples:
using module: