Created
March 14, 2023 16:41
-
-
Save onyxblade/a80f08022c11ad717c2b4d56d4f91117 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This gist is to demonstrate why camille requires plain namespaces instead of nested ones. | |
| module Camille | |
| module Types | |
| module Nested | |
| end | |
| end | |
| module Schemas | |
| module Nested | |
| end | |
| end | |
| end | |
| module Camille::Types | |
| class Nested::Product | |
| end | |
| end | |
| module Camille::Schemas | |
| class Nested::Products | |
| include Camille::Types | |
| # error | |
| #p Nested::Product | |
| end | |
| end | |
| module Camille::Schemas::Nested::ProductsOk | |
| include Camille::Types | |
| p Nested::Product | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment