sepp2k1 has quit [Remote host closed the connection]
chessguy has quit [Remote host closed the connection]
slyphon has joined #ruby-lang
brunocoelho has quit [Remote host closed the connection]
deryl has quit [Quit: deryl]
savage- has quit [Remote host closed the connection]
savage- has joined #ruby-lang
savage- has quit [Remote host closed the connection]
<postmodern>
my mind is blanking, what is a 1.8 and 1.9 compatible way to determine if a method is defined in a class, while excluding inherited methods (instance_eval)
brushbox has joined #ruby-lang
<heftig>
Foo.instance_methods(false)
<jtoy>
how do I do an if statement inside define_method, the if checks a variable outside of the scope of the define
stardiviner has joined #ruby-lang
stardiviner has quit [Read error: Connection reset by peer]
<shevy>
perhaps an @ivar
<shevy>
or a $global
<jtoy>
shevy: ,me? I don't think that is correct
<shevy>
hmm why not? perhaps via instance_variable_get or something like that
robbyoconnor has quit [Read error: Connection reset by peer]
toretore has joined #ruby-lang
robbyoconnor has joined #ruby-lang
s0ra_h is now known as sora_h
nofxxx has quit [Remote host closed the connection]
My_Hearing is now known as Mon_Ouie
kain has joined #ruby-lang
dalekurt has quit [Quit: Zzz...]
JohnBat26 has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Client Quit]
fgomez has quit [Ping timeout: 240 seconds]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
fgomez has joined #ruby-lang
solars has joined #ruby-lang
qwerxy has quit [Quit: offski]
sora_h is now known as s0ra_h
zerovin has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
s0ra_h is now known as sora_h
tekin has joined #ruby-lang
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
ioga_wrk has quit [Quit: Leaving]
shevy2 is now known as shevy
ryez has joined #ruby-lang
qwerxy has joined #ruby-lang
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
sora_h is now known as s0ra_h
fgomez has quit [Ping timeout: 244 seconds]
bds_orsk has joined #ruby-lang
skinny_much has quit [Remote host closed the connection]
bds_orsk has left #ruby-lang [#ruby-lang]
s0ra_h is now known as sora_h
benanne has joined #ruby-lang
ryez has quit [Ping timeout: 245 seconds]
saLOUt has joined #ruby-lang
heftig has quit [Quit: leaving]
skinny_much has joined #ruby-lang
kyrylo has quit [Quit: WeeChat 0.3.7]
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
kyrylo has joined #ruby-lang
neocoin has joined #ruby-lang
cantonic_ has joined #ruby-lang
cantonic has quit [Ping timeout: 260 seconds]
cantonic_ is now known as cantonic
qwerxy has quit [Ping timeout: 256 seconds]
mccraig has joined #ruby-lang
tbuehlmann has quit []
qwerxy has joined #ruby-lang
banister_ has joined #ruby-lang
tomb__ has joined #ruby-lang
Natch| has quit [Ping timeout: 265 seconds]
brushbox1 has joined #ruby-lang
rippa has quit [Quit: derp herp]
brushbox has quit [Ping timeout: 248 seconds]
Boohbah has quit [Ping timeout: 276 seconds]
weeb1e has joined #ruby-lang
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
ioga_wrk has joined #ruby-lang
dr_turkleberry has joined #ruby-lang
dr_turkleberry has quit [Client Quit]
<weeb1e>
Probably going to not happen overnight, but I've decided I'm going to have a go at embedding mruby into a C++ server and building an interface for it
sepp2k has joined #ruby-lang
ttilley is now known as ttilley_off
skinny_much has quit [Ping timeout: 265 seconds]
FiXato has joined #ruby-lang
fayimora has joined #ruby-lang
FiXato has quit [Ping timeout: 240 seconds]
<shevy>
weeb1e \o/
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
qwerxy has quit [Quit: offski]
joast has quit [Quit: Leaving.]
FiXato has joined #ruby-lang
qwerxy has joined #ruby-lang
stamina has quit [Quit: Lost terminal]
stamina has joined #ruby-lang
jakko_ has quit [Ping timeout: 260 seconds]
saLOUt has quit [Ping timeout: 265 seconds]
gix has quit [Ping timeout: 245 seconds]
dreieins- has quit [Remote host closed the connection]
joast has joined #ruby-lang
gix has joined #ruby-lang
zerovin has left #ruby-lang [#ruby-lang]
seanstickle has joined #ruby-lang
M4g1c5t0rM has joined #ruby-lang
dalekurt has joined #ruby-lang
yorickpeterse has joined #ruby-lang
benanne has quit [Quit: kbai]
<zzak>
shevy /o\
* zzak
o<
pkondzior has quit [Quit: Connection closed for inactivity]
<shevy>
can someone explain that duplicated regex thing...
<shevy>
REGEX = /(.*)-([\d\.\w]+)/
<shevy>
I am still not getting it
<shevy>
hmm the [] means a character range?
<shevy>
that kind of regex tries to check against something like ... "ruby-1.8.7" but optionally, it could also be "ruby-1.8.7supermarioversion33iscomingnow" or something
<imperator>
is there a way to determine if a method is being called in a private/public/protected scope?
<imperator>
my use case is ffi and attach_function
<banisterfiend>
imperator: just curious, but how were you planning on making MRI 1.9 visual C compatible?
MouseTheLuckyDog has quit [Quit: Leaving]
<imperator>
doesn't matter now :(
vbatts has quit [Ping timeout: 272 seconds]
<banisterfiend>
imperator: it's just that MRI is laced with c99 afaict, so you'd have to have maintained a totally separate c89 fork, which would mean every c99 patch that was made would have to be converted back to c89 by you :P it'd be a pretty huge job
qwerxy has joined #ruby-lang
<imperator>
compile with -Tp :-P
<imperator>
and i don't think i ever said "compatible" (did I?) - i said *optimized* (I think)
<imperator>
i can already compile ruby with vs++
<banisterfiend>
imperator: i thought u were aiming for microsoft visual C?
<imperator>
i was
<imperator>
oh, i need to read you statements more carefully
<imperator>
you mean merging future patches that were c99
<imperator>
oh, at first thought it had something to do with the compiler
mrc has joined #ruby-lang
<banisterfiend>
hehe me too
jakko_ has joined #ruby-lang
gregf has joined #ruby-lang
mrc has left #ruby-lang [#ruby-lang]
kawaguchi has joined #ruby-lang
mistym has quit [Remote host closed the connection]
outoftime has joined #ruby-lang
slaytani1 has quit [Remote host closed the connection]
slaytanic has joined #ruby-lang
arooni-mobile has joined #ruby-lang
tintin has joined #ruby-lang
tintin has left #ruby-lang [#ruby-lang]
krz has quit [Quit: krz]
fayimora has quit [Ping timeout: 256 seconds]
voker57 has joined #ruby-lang
imperator has quit [Ping timeout: 256 seconds]
vbatts has joined #ruby-lang
dasibre has quit [Remote host closed the connection]
saLOUt has quit [Quit: Konversation terminated!]
jakko_ has quit [Ping timeout: 256 seconds]
fayimora has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
dylst has quit [Ping timeout: 252 seconds]
robotmay has joined #ruby-lang
lele|w has quit [Ping timeout: 272 seconds]
lele|w has joined #ruby-lang
lele has joined #ruby-lang
havenn has quit [Remote host closed the connection]
heftig has quit [Quit: leaving]
msaffitz has joined #ruby-lang
qpingu has joined #ruby-lang
qpingu has left #ruby-lang [#ruby-lang]
fayimora has quit [Ping timeout: 245 seconds]
ryanf has joined #ruby-lang
slyphon has joined #ruby-lang
havocjoseph has joined #ruby-lang
ryanf has quit [Ping timeout: 246 seconds]
fayimora has joined #ruby-lang
ryanf has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 260 seconds]
fayimora has quit [Client Quit]
banisterfiend has quit [Read error: Connection reset by peer]
perryh is now known as perryh_away
msaffitz has quit [Quit: Computer has gone to sleep.]
arooni-mobile has quit [Ping timeout: 245 seconds]
mistym has joined #ruby-lang
gouthamvel has joined #ruby-lang
yannis has quit [Quit: yannis]
ryanf has quit [Quit: leaving]
rfitz has joined #ruby-lang
rfitz has quit [Client Quit]
rfitz has joined #ruby-lang
rfitz has quit [Client Quit]
ryanf has joined #ruby-lang
msaffitz has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
gouthamvel has left #ruby-lang [#ruby-lang]
slyphon has quit [Ping timeout: 245 seconds]
solars has quit [Ping timeout: 244 seconds]
heftig has joined #ruby-lang
rippa has quit [Ping timeout: 244 seconds]
Weems has quit [Read error: Connection reset by peer]
solars has joined #ruby-lang
Weems has joined #ruby-lang
Weems has quit [Changing host]
Weems has joined #ruby-lang
wlfman2k1 has joined #ruby-lang
ruurd has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
<shevy>
hmmm
<shevy>
i have two projects. both projects require the same class right now
<shevy>
the larger project, also requires the smaller project
<shevy>
ruby gives me warning that the class is included twice "already initialized constant bla"
<shevy>
what would be the proper way to solve that?
<TylerGillies>
have the smaller project require the class, and then having the bigger project require the smaller class will require the original wanted class?
<TylerGillies>
s/smaller class/smaller project/
<shevy>
hmm
<shevy>
yeah, the dependency chain right now is Project A -> Project B -> both require class C
<shevy>
but you are right...
<shevy>
when I require Project B, I could probably not have Project A require class C directly
felipe__ has quit [Read error: Connection reset by peer]
<shevy>
the thing is, I could put class C into a module I suppose, that would remove the warning?
<shevy>
or am I not thinking properly right now ... :\
felipe__ has joined #ruby-lang
tbuehlmann has joined #ruby-lang
<TTilus>
you should have C in c.rb and require 'c' in both the projects
<TTilus>
problem solved
fserb has quit [Quit: ttyl]
ryanf has quit [Quit: leaving]
<TTilus>
thats exactly what require is for
ryanf has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
heftig has joined #ruby-lang
<TylerGillies>
if C is required by B, and B is required by A theres no point in requiring C in A, because its already been required
brianpWins has quit [Ping timeout: 244 seconds]
<TTilus>
if A explicitly depends on C it should be explicitly required, imo
<TTilus>
B depending on C should be an implementation detail (subject to change anytime)
<TTilus>
from the point of view of A
brianpWins has joined #ruby-lang
<TylerGillies>
if a == b and b ==c then a==c, sorry couldn't resist heh
wlfman2k1 has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
solars has quit [Ping timeout: 244 seconds]
<shevy>
I need to break this down slowly...
msaffitz has quit [Quit: Computer has gone to sleep.]
ryanf has quit [Ping timeout: 260 seconds]
savage- has joined #ruby-lang
<shevy>
yeah TylerGillies
<TTilus>
TylerGillies: until b==c does not hold anymore, but a==c still holds
<TTilus>
(if we assume == representing dependency, which is really sucky analogy and you kow that too)
fserb has joined #ruby-lang
<TylerGillies>
TTilus: it was more of a joke than trying to prove a point
<TTilus>
ok
<TylerGillies>
if A explicitly requires C then require C in A, thats why require doesn't double require if already required