|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Packages / Modules
I was wondering if it was possible to deaclare a module / package that can exist acrossed seperate files.
For example I have a set of sprite classes that should all be a part of the same module, but each sprite class is in a different file. Is it possible to declare them as being a member to a certain ruby module without putting them inside the module definition?
__________________
--Tantapants |
|
#2
|
||||
|
||||
|
Yes. ruby allows this rather well, all you do is put them in the same module, despite their being in seperate files. So each file has
and it will automagically put them in the same module. You must still include the files seperately though.
__________________
~James [Not currently seeking freelance work] Like philosophy or interested in spirituality? Philosophorum. Game Dev Experts Forums Foresight Linux - Because your desktop should be cool! Linux FAQ FedoraFAQ UbuntuGuide |
|
#3
|
|||
|
|||
|
I was going to test that first... Sorry for being such a lazy nut.
Thanks though. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Other Programming Languages > Packages / Modules |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|