Skip to content

Instantly share code, notes, and snippets.

@onyxblade
Created March 14, 2023 16:41
Show Gist options
  • Select an option

  • Save onyxblade/a80f08022c11ad717c2b4d56d4f91117 to your computer and use it in GitHub Desktop.

Select an option

Save onyxblade/a80f08022c11ad717c2b4d56d4f91117 to your computer and use it in GitHub Desktop.
# 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