<corecode>
somehow class variables seem to be inherited, and i can't overwrite them in a child class?
<tbuehlmann>
corecode, class variables are shared
<yxhuvvd>
corecode: congratulations, you have just found out why many avoid class variables altogether.
<tbuehlmann>
if you want to save data in a single class, use a class instance variable (@f)
<corecode>
meh
<corecode>
metaprogramming fail
<corecode>
i would like to inherit the parent's value unless i override it
yfeldblum has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
CaptainJet has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
mehlah has joined #ruby-lang
CaptainJet has joined #ruby-lang
<corecode>
yea, that doesn't work with instance variables
<corecode>
oh meh
<corecode>
any other suggestions?
<bnagy>
what's wrong with class ivars, as suggested?
<corecode>
that works, but they don't inherit
<bnagy>
they're basically what classvars would be if classvars worked as most people expect
jsullivandigs has joined #ruby-lang
<corecode>
meaning, i don't get the value of the parent
<bnagy>
no but you can always go looking for them
<corecode>
oh my.
<corecode>
all the elegance out of the window :/
<corecode>
thanks tho
<corecode>
well, it was out long ago
<bnagy>
either make an accessor for them in the parent or just self.class.superclass.instance_variable_get or whatever
<bnagy>
it sounds like you're way down the rabbithole though. Happens pretty easily with metaprogramming.
thmzlt has joined #ruby-lang
<corecode>
i am
<corecode>
it's a dsl framework
<corecode>
basically a dsl to define dsls :)
jsullivandigs has quit [Ping timeout: 255 seconds]
<bnagy>
isn't that what ruby is?
jsullivandigs has joined #ruby-lang
<corecode>
this goes deeper :)
<bnagy>
I have to go over here now
jsullivandigs has quit [Ping timeout: 240 seconds]
vsorlov has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
rahul_j has quit [Ping timeout: 240 seconds]
Cakey has joined #ruby-lang
bahar has quit [Ping timeout: 240 seconds]
bahar has joined #ruby-lang
rahul_j has joined #ruby-lang
lolmaus has joined #ruby-lang
mikecmpbll has joined #ruby-lang
CaptainJet has quit [Ping timeout: 265 seconds]
TheMoonMaster has quit [Excess Flood]
vsorlov has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby-lang
simono_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simono has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
nalone has joined #ruby-lang
bzalasky has joined #ruby-lang
slawrence has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
nalone has quit []
jason_ has quit [Remote host closed the connection]
jason__ has joined #ruby-lang
nertzy3 has joined #ruby-lang
jason__ has quit [Ping timeout: 265 seconds]
bahar has quit [Ping timeout: 265 seconds]
jsullivandigs has joined #ruby-lang
bahar has joined #ruby-lang
sdouglas has joined #ruby-lang
jason__ has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 252 seconds]
jsullivandigs has joined #ruby-lang
sdouglas has quit [Ping timeout: 265 seconds]
kgrz has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
johnny_rugger has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
kitak has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
thmzlt has quit [Remote host closed the connection]
thmzlt has joined #ruby-lang
bruno- has joined #ruby-lang
iamgiri has joined #ruby-lang
stayarrr has joined #ruby-lang
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<iamgiri>
hello
bryanl has quit [Ping timeout: 264 seconds]
enebo has joined #ruby-lang
bahar has quit [Ping timeout: 240 seconds]
bahar has joined #ruby-lang
bryanl has joined #ruby-lang
lcdhoffman has joined #ruby-lang
achal has joined #ruby-lang
shinnya has quit [Ping timeout: 268 seconds]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flak has joined #ruby-lang
thmzlt_ has joined #ruby-lang
flak is now known as Guest48629
iamgiri has quit [Quit: Ex-Chat]
cnivolle has joined #ruby-lang
rippa has quit [Ping timeout: 252 seconds]
thmzlt has quit [Ping timeout: 268 seconds]
nathanstitt has joined #ruby-lang
yfeldblum has joined #ruby-lang
mr-foobar has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
gix has joined #ruby-lang
Cakey has quit [Ping timeout: 255 seconds]
jsullivandigs has joined #ruby-lang
sdouglas has joined #ruby-lang
|jemc| has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
jsullivandigs has quit [Ping timeout: 268 seconds]
jsullivandigs has joined #ruby-lang
thmzlt_ has quit []
enebo has quit [Quit: enebo]
sdouglas has quit [Ping timeout: 240 seconds]
jsullivandigs has quit [Ping timeout: 265 seconds]
stayarrr has quit [Quit: Leaving...]
nertzy3 has quit [Quit: This computer has gone to sleep]
Mon_Ouie has quit [Ping timeout: 255 seconds]
toastynerd has joined #ruby-lang
bruno- has quit [Ping timeout: 255 seconds]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
kgrz has joined #ruby-lang
enebo has joined #ruby-lang
phansch has quit [Quit: WeeChat 0.4.2]
momomomomo has joined #ruby-lang
tkuchiki has quit [Ping timeout: 255 seconds]
robmiller has quit [Quit: Leaving.]
Rahnarss1n has joined #ruby-lang
Rahnarsson has quit [Read error: Connection reset by peer]
lambo has joined #ruby-lang
lambo has left #ruby-lang [#ruby-lang]
esad has joined #ruby-lang
lambo has joined #ruby-lang
<lambo>
f
<lambo>
f
yfeldblum has joined #ruby-lang
heftig has quit [Quit: Quitting]
lambo has left #ruby-lang [#ruby-lang]
LMity has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
fmccann has joined #ruby-lang
fmccann has quit [Client Quit]
jsullivandigs has joined #ruby-lang
fmccann has joined #ruby-lang
fmccann has quit [Client Quit]
nathanstitt has quit [Quit: I growing sleepy]
LMity has quit [Ping timeout: 265 seconds]
jsullivandigs has quit [Ping timeout: 268 seconds]
jsullivandigs has joined #ruby-lang
hahuang61 has joined #ruby-lang
hahuang65 has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 264 seconds]
esad has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby-lang
sepp2k has joined #ruby-lang
johnny_rugger has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amclain has joined #ruby-lang
nanno77 has joined #ruby-lang
mechan1c has joined #ruby-lang
pabloh has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
Nss has quit [Remote host closed the connection]
CaptainJet has joined #ruby-lang
nanno77 has quit [Quit: Computer has gone to sleep.]
nanno77 has joined #ruby-lang
theAist has joined #ruby-lang
nanno77 has quit [Ping timeout: 265 seconds]
ikrima has joined #ruby-lang
fragamus has joined #ruby-lang
tylersmith has joined #ruby-lang
lsegal has joined #ruby-lang
bruno- has joined #ruby-lang
nanno77 has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
yfeldblu_ has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby-lang
theAist has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 265 seconds]
vsorlov has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
yfeldblu_ has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby-lang
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby-lang
grayWolf has joined #ruby-lang
Speed is now known as Guest6945
grayWolf is now known as Speed
Guest6945 has quit [Ping timeout: 265 seconds]
bruno- has quit [Quit: leaving]
Who has joined #ruby-lang
pabloh has quit [Remote host closed the connection]
Karql has quit [Remote host closed the connection]
kgrz has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
kgrz has joined #ruby-lang
jsullivandigs has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
kgrz has quit [Ping timeout: 252 seconds]
mbj has left #ruby-lang [#ruby-lang]
bahar has quit [Ping timeout: 265 seconds]
centrx has joined #ruby-lang
bahar has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
mechanicles has quit []
centrx has quit [Quit: All this computer hacking is making me thirsty]
ikrima has quit [Ping timeout: 268 seconds]
centrx has joined #ruby-lang
hexreel has joined #ruby-lang
sepp2k1 has joined #ruby-lang
bahar has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby-lang
Who has quit [Ping timeout: 255 seconds]
sepp2k has quit [Ping timeout: 240 seconds]
bahar has joined #ruby-lang
havenwood has quit []
phansch has joined #ruby-lang
ikrima has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
alexju has joined #ruby-lang
stayarrr has joined #ruby-lang
jsutt has joined #ruby-lang
odcinek_ has joined #ruby-lang
nanno77_ has joined #ruby-lang
lcdhoffman has joined #ruby-lang
sdouglas has joined #ruby-lang
nanno77 has quit [Ping timeout: 255 seconds]
LMity has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
sdouglas has quit [Ping timeout: 240 seconds]
jsullivandigs has quit [Read error: Connection reset by peer]
jsullivandigs has joined #ruby-lang
LMity has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
relix has joined #ruby-lang
Guest48629 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sdouglas has joined #ruby-lang
symm- has joined #ruby-lang
sdouglas has quit [Ping timeout: 268 seconds]
bahar has quit [Ping timeout: 264 seconds]
stayarrr has quit [Quit: Leaving...]
bahar has joined #ruby-lang
dstynchula has joined #ruby-lang
ikrima has quit [Ping timeout: 255 seconds]
arBmind has joined #ruby-lang
Atw has joined #ruby-lang
tharindu_ has joined #ruby-lang
tharindu has quit [Ping timeout: 265 seconds]
_ht has quit [Remote host closed the connection]
odcinek_ has left #ruby-lang [#ruby-lang]
The_NetZ has joined #ruby-lang
<The_NetZ>
hey. any way to make extconf.rb produce a debug makefile?
<The_NetZ>
I'm having an issue requireing my built shared object; undefined symbol: Init_rect, where rect.so is the library and Rect is the class defined therein.
CaptainJet has quit [Ping timeout: 265 seconds]
t4nk911 has joined #ruby-lang
CaptainJet has joined #ruby-lang
<t4nk911>
I have an issue trying to match code from a JSON
vpretzel has quit [Remote host closed the connection]
elliotec has quit [Remote host closed the connection]
CaptainJet has quit [Ping timeout: 268 seconds]
CaptainJet has joined #ruby-lang
elliotec has joined #ruby-lang
vpretzel has joined #ruby-lang
brettweavnet has joined #ruby-lang
CaptainJet has quit [Ping timeout: 265 seconds]
brettweavnet has quit [Client Quit]
bryanl has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby-lang
CaptainJet has joined #ruby-lang
iTrojan has joined #ruby-lang
<iTrojan>
hey ?
jsutt has quit [Remote host closed the connection]
<t4nk911>
Does anyone know the method to find the index value in an array of a specific hash value
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lcdhoffman has joined #ruby-lang
butterbrei has joined #ruby-lang
lcdhoffman has quit [Client Quit]
elliotec has joined #ruby-lang
lcdhoffman has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
<t4nk911>
thanks iTrojan...that will give me the boolean...is there a way to get the index value
chouhoulis has joined #ruby-lang
benanne has joined #ruby-lang
<t4nk911>
@itrojan in your previous example it would be 1 for 'Dog'
guns has joined #ruby-lang
<iTrojan>
['Cat', 'Dog', 'Bird'].index('Dog')
<iTrojan>
t4nk911
butterbrei has quit [Quit: butterbrei]
skammer has joined #ruby-lang
relix has joined #ruby-lang
alexju has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
t4nk911 has quit [Ping timeout: 245 seconds]
t4nk741 has quit [Ping timeout: 245 seconds]
gix has quit [Ping timeout: 255 seconds]
<whitequark>
corecode: use def Klass.inherited()
<whitequark>
to define instance vars in the child class
<whitequark>
it's a callback
<whitequark>
and, better, don't make a dsl for making dsls, it's a pretty bad idea ;)
<yxhuvvd>
whitequark: a dsl for making dsl's sounds like a parser.
momomomomo has quit [Quit: momomomomo]
<yxhuvvd>
ie racc, treetop etc.
<whitequark>
like a parser generator, you mean
gix has joined #ruby-lang
<yxhuvvd>
well yes
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lolmaus has quit [Read error: Operation timed out]
lolmaus has joined #ruby-lang
yfeldblum has joined #ruby-lang
<apeiros>
dsls for dsls are rubys factory factories
CaptainJet has quit [Ping timeout: 245 seconds]
CaptainJet has joined #ruby-lang
lcdhoffman has joined #ruby-lang
yfeldblum has quit [Ping timeout: 246 seconds]
CaptainJet has quit [Read error: Connection reset by peer]
phansch has quit [Quit: WeeChat 0.4.2]
CaptainJet has joined #ruby-lang
bahar has quit [Ping timeout: 264 seconds]
odcinek_ has joined #ruby-lang
bahar has joined #ruby-lang
CaptainJet has quit [Ping timeout: 240 seconds]
odcinek_ has quit [Quit: Leaving.]
guns has quit [Quit: guns]
CaptainJet has joined #ruby-lang
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
digs has joined #ruby-lang
jsullivandigs has quit [Read error: Connection reset by peer]
bahar has quit [Ping timeout: 268 seconds]
digs is now known as Guest45706
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
bahar has joined #ruby-lang
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
futilegames has quit [Quit: futilegames]
balo has joined #ruby-lang
<balo>
evening
nanno77_ has quit [Quit: Computer has gone to sleep.]
<balo>
how can i run the tests of mri? i mean ruby/ruby/trunk/test
ledestin has quit [Quit: ledestin]
nisstyre has joined #ruby-lang
<jhass>
balo: make test
<jhass>
I think
<balo>
it's good to run the tests against my installed ruby. i'd like to backport some tests to 1.9 so i don't like to modify the source only the tests
robmiller has joined #ruby-lang
<balo>
ruby$ make test
heftig has joined #ruby-lang
<balo>
make: Nothing to be done for `test'.
<balo>
:/
elliotec has quit [Remote host closed the connection]
<balo>
the tests are basically ruby source codes
devgiant has quit [Ping timeout: 255 seconds]
<balo>
i tried $ ruby runner.rb from the test folder
tylersmith has quit [Remote host closed the connection]
<balo>
i got an ugly b
<balo>
core dump :D
tylersmith has joined #ruby-lang
postmodern has joined #ruby-lang
elliotec has joined #ruby-lang
<balo>
this should work, i guess :/ $ ruby -Itest test/runner.rb
devgiant has joined #ruby-lang
tylersmith has quit [Ping timeout: 252 seconds]
<jhass>
autoconf; ./configure; make test works for me (at least it runs something)
elliotec has quit [Ping timeout: 255 seconds]
enebo has quit [Quit: enebo]
<balo>
jhass: yeah, but it compiles the project. i don't really need that because i have an installed binary and i'd like to extend the tests only for 1.9.3
ikrima has joined #ruby-lang
yfeldblum has joined #ruby-lang
jason__ has quit [Remote host closed the connection]
jason__ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby-lang
jason__ has quit [Remote host closed the connection]
jsullivandigs has quit [Read error: Connection reset by peer]
jsullivandigs has joined #ruby-lang
sdouglas has joined #ruby-lang
kirin` has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
sdouglas has quit [Ping timeout: 246 seconds]
Speed has quit [Ping timeout: 265 seconds]
toastynerd has joined #ruby-lang
jason___ has joined #ruby-lang
enebo has joined #ruby-lang
enebo has quit [Client Quit]
cnivolle has joined #ruby-lang
workmad3 has joined #ruby-lang
momomomomo has joined #ruby-lang
iTrojan has quit [Quit: Leaving.]
symm- has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
cnivolle has quit [Ping timeout: 255 seconds]
<jhass>
lolmaus: try using Foo; puts "bar".foo
<jhass>
refinements don't seem to last through multiple eval calls
jxport has quit [Ping timeout: 252 seconds]
benanne has quit [Quit: kbai]
mikecmpbll has quit [Quit: i've nodded off.]
jason___ has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
ap4y_ has joined #ruby-lang
kyb3r_ has joined #ruby-lang
ap4y_ has quit [Client Quit]
ap4y has quit [Ping timeout: 265 seconds]
ap4y has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
kgrz has joined #ruby-lang
odcinek_ has joined #ruby-lang
kgrz has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby-lang
<balo>
thanks for all the help :) an important note: ubuntu only backports security fixes in the LTS version. I ran the 1.9.3p545 tests against the up-to-date version from the repository of 12.04 (1.9.3): 7/951 tests failed
yfeldblum has quit [Ping timeout: 255 seconds]
<balo>
not a surprise or anyithing. just a hidden "use rvm or rbenv if you can" message :D
<jhass>
I use a sane OS if I can :P
lolmaus has quit [Remote host closed the connection]
lolmaus has joined #ruby-lang
<balo>
please just don't say gentoo :D
<jhass>
worse, I run arch... on servers
<balo>
wow
<balo>
you are really brave
<balo>
i used it on my notebook a few years ago
<jhass>
fedora usually has fairly recent rubies too though
ap4y has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
<wmoxam>
A lot of ruby production code runs on Gentoo actually
<wmoxam>
not that I'm a fan
nathanstitt has joined #ruby-lang
<wmoxam>
it's just that Engineyard's stack is all based off Gentoo
ikrima has quit [Ping timeout: 255 seconds]
<balo>
it can work. but with a lot of pain
<wmoxam>
EY does all the work anyways
<wmoxam>
people choose EY to avoid doing all the yak shaving themselves
<balo>
:(
<balo>
sry :)
<balo>
keyboard layout ^^
achal has quit [Quit: Connection closed for inactivity]
Speed has joined #ruby-lang
toretore has quit [Quit: This computer has gone to sleep]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
iTrojan has joined #ruby-lang
odcinek_ has quit [Ping timeout: 268 seconds]
ap4y has joined #ruby-lang
ap4y has quit [Ping timeout: 240 seconds]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
kitak has quit [Remote host closed the connection]