-
-
Save allaire/0a7424ba9e745bebad4c to your computer and use it in GitHub Desktop.
This file contains 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
class API | |
class Entities::Property <Foo::Entity | |
# ... | |
end | |
end | |
# Other file | |
class API < Foo::API | |
module Entities; end | |
# ... | |
end | |
Dir[File.expand_path('../entities/**/*.rb', __FILE__)].each do |file| | |
require file | |
end | |
# ---- OR ---- | |
class API | |
module Entities | |
class Property < Foo::Entity | |
end | |
end | |
end | |
# Other file | |
class API < Foo::API | |
# ... | |
end | |
Dir[File.expand_path('../entities/**/*.rb', __FILE__)].each do |file| | |
require file | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment