-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Let's say I have a module that is included in a class:
module Paramable
include Cannon::Auto
abstract def parse
end
class JsonParams
include Paramable
end
class FormEncodedParams
include Paramable
end
And I make an instance var of the module type
class Action
include Cannon::Auto
@params : Paramable
end
The problem is that Paramable
is a module so you can't define instance methods on it that Cannon expects.
Is there a way to do this? And if not, do you have an idea of where I could start? I'd love to try a PR
Metadata
Metadata
Assignees
Labels
No labels