<cxl>
I have this issue where I have a few modules that require each other to function. Is there a way to write my include statement so that the order in which they're included doesn't matter? Right now I have to keep juggling the order so that I don't get "uninitialized constant" errors.
dionysus69 has quit [Ping timeout: 260 seconds]
MalusVulgaris has quit [Ping timeout: 250 seconds]
<wnd>
maybe it is because my c background, but even with Ruby I have each file require files they, well, require
<wnd>
also, you may want to have a look at require_relative instead of require './foo'
MalusVulgaris has joined #ruby
<cxl>
Even with the explicit require in the file, I'm having issues
MalusVulgaris has quit [Ping timeout: 252 seconds]
leonthemisfit has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 240 seconds]
<wnd>
oh, I missed the obvious thing you even pointed out in the code examples \o/
<wnd>
I'm going to demonstrate why I should've kept quiet in the first place. Someone else will have to explain (this better). :-)
<wnd>
Usually we include or extend a module into a class. If we wants to call (module) Foo.foo_method, we get to define it as "def self.foo_method". Maybe you're trying to use modules for something they're not intended for.
<Lox>
I'll see if I can find anything on the issuelist, and report it if I can't find anything. I'm happy with the solution to use `*x` as an argument now so I can proceed, thanks leah2!
teclator has joined #ruby
moldorcoder7 has joined #ruby
donofrio has joined #ruby
Lox has quit [Quit: Client closed]
MalusVulgaris has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
stagec63 has joined #ruby
drainpipe has joined #ruby
MalusVulgaris1 has joined #ruby
MalusVulgaris has quit [Ping timeout: 250 seconds]
MalusVulgaris1 is now known as MalusVulgaris
MalusVulgaris has quit [Quit: MalusVulgaris]
teclator has quit [Ping timeout: 260 seconds]
autodev has joined #ruby
autodev has quit [Remote host closed the connection]
autodev has joined #ruby
stagec63 has quit [Ping timeout: 265 seconds]
szkl has joined #ruby
autodev has quit [Remote host closed the connection]
autodev has joined #ruby
autodev has quit [Remote host closed the connection]
autodev has joined #ruby
autodev has quit [Remote host closed the connection]
Artea has quit [Read error: Connection reset by peer]
Artea has joined #ruby
TomyLobo has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bambanxx has joined #ruby
bambanxx has quit [Client Quit]
dionysus69 has joined #ruby
bambanxx has joined #ruby
autodev has joined #ruby
leonthemisfit has joined #ruby
leonthemisfit has quit [Changing host]
leonthemisfit has joined #ruby
gr33n7007h has quit [Ping timeout: 265 seconds]
autodev has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
autodev has joined #ruby
szkl has quit [Quit: Connection closed for inactivity]
autodev has quit [Remote host closed the connection]
markov_twain has quit [Quit: markov_twain]
autodev has joined #ruby
autodev has quit [Ping timeout: 248 seconds]
autodev has joined #ruby
autodev has quit [Remote host closed the connection]
caedmon has joined #ruby
autodev has joined #ruby
autodev has quit [Read error: Connection reset by peer]
autodev has joined #ruby
caedmon has quit [Ping timeout: 248 seconds]
drainpipe has quit [Ping timeout: 268 seconds]
AlexBrownSobinec has joined #ruby
AlexBrownSobinec has quit [Client Quit]
gcd has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
drainpipe has joined #ruby
drainpipe has quit [Ping timeout: 268 seconds]
reset has joined #ruby
autodev has quit [Remote host closed the connection]
autodev has joined #ruby
autodev has quit [Ping timeout: 268 seconds]
johnjaye has quit [Quit: WeeChat 3.0]
johnjaye has joined #ruby
Linux_Kerio has quit [Ping timeout: 250 seconds]
mexen has joined #ruby
drainpipe has joined #ruby
autodev has joined #ruby
pvb has quit [Ping timeout: 248 seconds]
otisolsen70 has quit [Quit: Leaving]
_ht has quit [Quit: _ht]
goldfish has joined #ruby
xuochi has joined #ruby
hightower2 has joined #ruby
stagec63 has joined #ruby
antica has joined #ruby
johnjaye has quit [Ping timeout: 248 seconds]
stagec63 has quit [Ping timeout: 255 seconds]
johnjaye has joined #ruby
antica has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
autodev has quit [Remote host closed the connection]