Skip to content

Instantly share code, notes, and snippets.

@allaire
Created November 30, 2012 14:56
Show Gist options
  • Save allaire/0a7424ba9e745bebad4c to your computer and use it in GitHub Desktop.
Save allaire/0a7424ba9e745bebad4c to your computer and use it in GitHub Desktop.
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