Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Typical Ruby (non-rails) project structure.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="brabuhr, post: 4667214"] / I think he means something like: / lib/ library_name.rb # This is the file that consumers of this # library will require; it will create the # module and load the actual library. require './library_name/library_class' module LibraryName VERSION =3D "..." end library_name/ library_class.rb # The class that implements the library. module LibraryName class LibraryClass end end another_class.rb # A support class for the library. module LibraryName class AnotherClass end end submodule/ yet_another_class.rb # A support class in a submodule. module LibraryName module Submodule class YetAnotherClass end end end [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Typical Ruby (non-rails) project structure.
Top