mpan has quit [Read error: Connection reset by peer]
catepillar has joined #ruby-lang
mpan has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
jasiek_ has joined #ruby-lang
kurko_ has joined #ruby-lang
nitti has joined #ruby-lang
theKaramanukian has joined #ruby-lang
jasiek has quit [Read error: Connection reset by peer]
sn0wb1rd_ has joined #ruby-lang
mbr has quit [Ping timeout: 252 seconds]
mbr has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
sn0wb1rd has quit [Ping timeout: 256 seconds]
sn0wb1rd_ is now known as sn0wb1rd
wyhaines has joined #ruby-lang
phaedrix has joined #ruby-lang
kurko_ has joined #ruby-lang
nitti has quit [Ping timeout: 260 seconds]
areil has joined #ruby-lang
spo12 is now known as spooky12
havenn has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 240 seconds]
dc5ala has joined #ruby-lang
Dreamer3__ has quit [Quit: Computer has gone to sleep.]
LukeRub has joined #ruby-lang
asdfasdfasdf123 has joined #ruby-lang
brianpWins has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
alvaro_o has quit [Quit: Ex-Chat]
spuk has quit [Read error: Operation timed out]
theKaramanukian has quit [Ping timeout: 260 seconds]
theKaramanukian has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
freedrull has quit [Ping timeout: 245 seconds]
freedrull has joined #ruby-lang
<catepillar>
test
datanoise has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
Dreamer3__ has joined #ruby-lang
<theKaramanukian>
Hey I need some help with cinch!
<theKaramanukian>
So I'm a complete newb to ruby, and I'm trying to get a IRC bot running with cinch
<theKaramanukian>
I downloaded there package from github, and now I'm having a problem running one of the example/basic scripts.
<theKaramanukian>
anybody
datanoise has quit [Ping timeout: 255 seconds]
<theKaramanukian>
anybody?
<lianj>
join #cinch
LukeRub has quit [Ping timeout: 245 seconds]
wyhaines has quit [Ping timeout: 244 seconds]
thone has quit [Ping timeout: 246 seconds]
<catepillar>
lol
<catepillar>
cinch kicked him over here, because he was having issues running google.rb
<dominikh>
I kicked him over here because he needs to learn Ruby first, even as far as how to run scripts :)
Xzyx987X has quit [Ping timeout: 265 seconds]
<theKaramanukian>
anybody.
thone has joined #ruby-lang
<catepillar>
lets start with
<catepillar>
21:39 < theKaramanukian> the following isn't working for me because of some dependency problems: ruby google.rb
<catepillar>
what kind of dependency error were you getting?
tdy has quit [Ping timeout: 260 seconds]
<catepillar>
use pastebin.com if you want to dump several lines of stuff here (so you don't spam up the channel)
wyhaines has joined #ruby-lang
nitti has joined #ruby-lang
tdy has joined #ruby-lang
twittard has quit [Quit: twittard]
nitti has quit [Ping timeout: 244 seconds]
randomautomator has joined #ruby-lang
<theKaramanukian>
ping
randomautomator has quit [Client Quit]
thinkdevcode has quit [Remote host closed the connection]
Dreamer3__ has quit [Quit: Computer has gone to sleep.]
<catepillar>
theKaramanukian: i asked you a question, and you never responded
<catepillar>
22:44 < catepillar> 21:39 < theKaramanukian> the following isn't working for me because of some dependency problems: ruby google.rb
<catepillar>
22:44 < catepillar> what kind of dependency error were you getting?
<catepillar>
22:45 < catepillar> use pastebin.com if you want to dump several lines of stuff here (so you don't spam up the channel)
wonderburger has quit [Remote host closed the connection]
asdfasdfasdf123 has quit [Quit: asdfasdfasdf123]
theKaramanukian has quit [Quit: theKaramanukian]
theKaramanukian has joined #ruby-lang
theKaramanukian has quit [Ping timeout: 260 seconds]
ipabs has joined #ruby-lang
brianritchie has joined #ruby-lang
theKaramanukian has joined #ruby-lang
gsav_ has quit [Read error: Connection reset by peer]
gsav has quit [Read error: Connection reset by peer]
gsav__ has quit [Read error: Connection reset by peer]
enebo has quit [Quit: enebo]
adam12 has joined #ruby-lang
theKaramanukian has quit [Quit: theKaramanukian]
postmodern has joined #ruby-lang
thinkdevcode has joined #ruby-lang
savage- has quit [Quit: savage-]
methods has quit [Quit: Leaving.]
theKaramanukian has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
theKaramanukian has left #ruby-lang [#ruby-lang]
savage- has joined #ruby-lang
enebo has joined #ruby-lang
Nisstyre has quit [Read error: Connection reset by peer]
enebo has quit [Client Quit]
Xzyx987X has joined #ruby-lang
nitti has joined #ruby-lang
Nisstyre has joined #ruby-lang
nitti has quit [Ping timeout: 260 seconds]
mistym has quit [Remote host closed the connection]
ryanf_ has joined #ruby-lang
ryanf has quit [Quit: leaving]
ryanf_ is now known as ryanf
cirenyc has quit [Quit: Leaving...]
spuk has joined #ruby-lang
burgestrand has joined #ruby-lang
sn0wb1rd has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby-lang
svyatov has joined #ruby-lang
kylemcgi_ has quit []
kylemcgill has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
ryanf has quit [Quit: broken pipes |||]
guns has quit [Read error: Connection reset by peer]
perryh has quit [Excess Flood]
perryh has joined #ruby-lang
ryanf has joined #ruby-lang
<xalei>
after $ gem install rspec, should you be able to go $ rspec tests.rb, or is there more setup involved? the rspec.info assumes it just works after gem install rspec
cantonic_ has joined #ruby-lang
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
vlad_starkov has joined #ruby-lang
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
ryanf has quit [Quit: broken pipes |||]
ryanf has joined #ruby-lang
nitti has joined #ruby-lang
chimkan_ has joined #ruby-lang
twittard has joined #ruby-lang
nitti has quit [Ping timeout: 256 seconds]
<steveklabnik>
xalei: rspec.info is for rspec 1, i bet you installed rspec 2. that said, just running 'rspec' after you install it should make it work
anannie has quit [Ping timeout: 245 seconds]
<xalei>
thanks steveklabnik
<xalei>
definitely have rspec 2... figured it out, I did something stupid with my .bash_profile so that rvm worked but not in the right way
spuk has quit [Read error: Operation timed out]
vlad_starkov has quit [Remote host closed the connection]
burgestrand has joined #ruby-lang
yxhuvud has joined #ruby-lang
thinkdevcode has quit [Remote host closed the connection]
chimkan_ has quit [Quit: chimkan_]
savage- has quit [Quit: savage-]
JohnBat26 has joined #ruby-lang
nitti has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Guest37466 has joined #ruby-lang
Guest37466 has left #ruby-lang [#ruby-lang]
nitti has quit [Ping timeout: 256 seconds]
anannie has joined #ruby-lang
thatdutchguy has quit [Remote host closed the connection]
brianritchie has quit [Quit: brianritchie]
nXqd has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
rippa has joined #ruby-lang
svyatov has quit [Quit: svyatov]
svyatov has joined #ruby-lang
CoverSlide has quit [Ping timeout: 260 seconds]
mytrile has joined #ruby-lang
rolfb has joined #ruby-lang
solars has joined #ruby-lang
Guest15771 has joined #ruby-lang
Xzyx987X has quit [Quit: Leaving]
Xzyx987X has joined #ruby-lang
Xzyx987X has quit [Read error: Connection reset by peer]
Xzyx987X has joined #ruby-lang
CoverSlide has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
runeb has joined #ruby-lang
nitti has joined #ruby-lang
runeb has quit [Ping timeout: 240 seconds]
justinmcp has quit [Ping timeout: 256 seconds]
nitti has quit [Ping timeout: 256 seconds]
snafoo has quit [Quit: Quit]
workmad3 has joined #ruby-lang
<yorickpeterse>
Morning
anannie has quit [Remote host closed the connection]
anannie has joined #ruby-lang
anannie has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
brianpWins has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
gnufied has joined #ruby-lang
gaveen has quit [Remote host closed the connection]
xalei_ has joined #ruby-lang
xalei has quit [Ping timeout: 265 seconds]
chendo has quit [Read error: Operation timed out]
chendo_ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
rippa has quit [Ping timeout: 240 seconds]
justinmcp has joined #ruby-lang
tbuehlmann has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
ddd has quit [Ping timeout: 245 seconds]
xalei_ has quit [Ping timeout: 245 seconds]
bosie has joined #ruby-lang
nitti has joined #ruby-lang
blacktulip has joined #ruby-lang
nitti has quit [Ping timeout: 260 seconds]
irleif has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
xalei_ has joined #ruby-lang
runeb has joined #ruby-lang
anannie has joined #ruby-lang
d3vic3 has joined #ruby-lang
adambeynon has joined #ruby-lang
cultureulterior_ has quit [Quit: cultureulterior_]
tonni has joined #ruby-lang
Madis has joined #ruby-lang
nofxx has quit [Remote host closed the connection]
rue has quit [Remote host closed the connection]
irleif has quit [Quit: Computer has gone to sleep.]
irleif has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
facest_ has joined #ruby-lang
facest has left #ruby-lang ["Leaving"]
facest_ has left #ruby-lang [#ruby-lang]
faces has joined #ruby-lang
justinmcp has quit [Ping timeout: 260 seconds]
faces has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
facest has joined #ruby-lang
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby-lang
cantonic has quit [Client Quit]
cantonic has joined #ruby-lang
sepp2k has joined #ruby-lang
workmad3 has joined #ruby-lang
runeb has quit [Remote host closed the connection]
nitti has joined #ruby-lang
cschwartz has joined #ruby-lang
ramu3 has joined #ruby-lang
nitti has quit [Ping timeout: 256 seconds]
ramu3 has quit [Client Quit]
cultureulterior_ has joined #ruby-lang
xalei_ has quit [Ping timeout: 260 seconds]
runeb has joined #ruby-lang
GarethAdams has joined #ruby-lang
cschwartz has quit [Ping timeout: 260 seconds]
voker57 has quit [Read error: Connection reset by peer]
cschwartz has joined #ruby-lang
kylemcgi_ has joined #ruby-lang
kylemcgill has quit [Read error: Connection reset by peer]
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
xalei_ has joined #ruby-lang
rue has joined #ruby-lang
runeb has quit [Remote host closed the connection]
woollyams has quit [Quit: Computer has gone to sleep.]
runeb has joined #ruby-lang
rue has quit [Ping timeout: 260 seconds]
stardiviner has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
toretore has joined #ruby-lang
ulisescab has joined #ruby-lang
nitti has joined #ruby-lang
nitti has quit [Ping timeout: 256 seconds]
d3vic3 has quit [Ping timeout: 255 seconds]
kylemcgi_ has quit []
d3vic3 has joined #ruby-lang
kylemcgill has joined #ruby-lang
nyuszika7h has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 255 seconds]
svyatov has quit [Quit: svyatov]
svyatov has joined #ruby-lang
kurko_ has joined #ruby-lang
nyuszika7h has joined #ruby-lang
kurko_ has quit [Ping timeout: 264 seconds]
kurko_ has joined #ruby-lang
anannie has quit [Remote host closed the connection]
yalue has joined #ruby-lang
m3nd3s has joined #ruby-lang
irleif has joined #ruby-lang
woollyams has joined #ruby-lang
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
anannie has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
mwjcomputing has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
kylemcgill is now known as aetcore
kurko_ has quit [Ping timeout: 252 seconds]
aetcore has quit []
gaveen has quit [Remote host closed the connection]
aetcore has joined #ruby-lang
kurko_ has joined #ruby-lang
ddd has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
cschwartz has quit [Ping timeout: 248 seconds]
mytrile has quit [Remote host closed the connection]
nitti has joined #ruby-lang
Axsuul has quit [Ping timeout: 255 seconds]
vlad_starkov has joined #ruby-lang
nitti has quit [Ping timeout: 260 seconds]
kurko_ has quit [Ping timeout: 252 seconds]
xalei_ has quit [Remote host closed the connection]
jxie has quit [Quit: leaving]
shtirlic has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
vlad_sta_ has joined #ruby-lang
cantonic has quit [Quit: cantonic]
d3vic3 has quit [Ping timeout: 252 seconds]
aetcore has quit [Read error: Connection reset by peer]
aetcore_ has joined #ruby-lang
cantonic has joined #ruby-lang
d3vic3 has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
benanne has joined #ruby-lang
aetcore_ has quit [Read error: Connection reset by peer]
cantonic has quit [Ping timeout: 244 seconds]
wyhaines has joined #ruby-lang
svyatov has quit [Quit: svyatov]
ulisescab has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
svyatov has joined #ruby-lang
d3vic3 has quit [Read error: Operation timed out]
vlad_sta_ has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
rippa has joined #ruby-lang
d3vic3 has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
cjs226 has quit []
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
guns has joined #ruby-lang
Ryhnn has joined #ruby-lang
marjohn has joined #ruby-lang
chimkan_ has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
workmad3_ has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
x0F_ is now known as x0F
workmad3 has quit [Ping timeout: 260 seconds]
mistym has quit [Remote host closed the connection]
chimkan_ has quit [Ping timeout: 240 seconds]
carloslo_ has joined #ruby-lang
carloslopes has quit [Ping timeout: 240 seconds]
workmad3_ is now known as workmad3
sailias has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
cschwartz has joined #ruby-lang
nettsundere has joined #ruby-lang
anannie has quit [Remote host closed the connection]
cinch_ has joined #ruby-lang
toertore has joined #ruby-lang
cinch_ has quit [Remote host closed the connection]
areil has quit [Remote host closed the connection]
granthutchins has quit [Quit: This computer has gone to sleep]
mwjcomputing has quit [Quit: Leaving]
desmondmonster has left #ruby-lang [#ruby-lang]
desmondmonster has joined #ruby-lang
desmondmonster has left #ruby-lang [#ruby-lang]
guns has joined #ruby-lang
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
rippa has joined #ruby-lang
chimkan has joined #ruby-lang
d3vic3 has quit [Ping timeout: 268 seconds]
d3vic3 has joined #ruby-lang
kurko_ has quit [Ping timeout: 248 seconds]
senekis has joined #ruby-lang
kurko_ has joined #ruby-lang
m3nd3s has joined #ruby-lang
<erikh>
imperator: feh
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby-lang
<erikh>
rake
<erikh>
err
<andrewvos>
hah
<andrewvos>
Never seen anyone type an embarrassing command into IRC by mistake
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
tonni has quit [Remote host closed the connection]
krohrbaugh has joined #ruby-lang
<weeb1e>
Hello
<weeb1e>
I am really struggling with finding a way to capture the stdout output from a process I am spawning in wine (with `wine ...`), the output does not go to stdout of the spawned process so redirection does not work, `script` does not capture it, neither does PTY.spawn
<weeb1e>
Does anyone have any idea how I can capture this output?
<imperator>
erikh, eh?
<imperator>
weeb1e, open3 perhaps?
<imperator>
check stderr, see if it's going there instead
<weeb1e>
imperator: The stdout output does not go to the spawned processes pipes, hence that will not work
<weeb1e>
It is not stderr output
kurko_ has quit [Ping timeout: 248 seconds]
<weeb1e>
The stderr output does in fact work, but it comes from `wine` not from the process wine is spawning
mrsolo has joined #ruby-lang
<weeb1e>
My next idea is to spawn the process in wine inside `screen` which I will spawn in a PTY.spawn, get screen to log to a file and then read from the file
<zzak>
there's a lot of accepted but unimplemented features for 2.0, get out there and go get em :)
<weeb1e>
This is a lot of redirection, but it might just work
<weeb1e>
If anyone has a better idea, please let me know\
kurko_ has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
JohnBat26 has quit [Ping timeout: 240 seconds]
lifo_ has joined #ruby-lang
lifo_ has quit [Remote host closed the connection]
<erikh>
imperator: oh; I almost had a patch to a 6 year old library but noooooo you had to go give him a working solution
<erikh>
speaking of patches, anyone want to look this over? I'm trying to make vagrant easier to drive with other programs
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
dpatel has joined #ruby-lang
<imperator>
hm, maybe i should crash it ;)
d3vic3 has quit [Ping timeout: 252 seconds]
<imperator>
(the conference, not the site - i'm in the denver area)
d3vic3 has joined #ruby-lang
runeb has quit [Remote host closed the connection]
bfreeman has joined #ruby-lang
havenn has quit [Ping timeout: 244 seconds]
wallerdev has quit [Quit: wallerdev]
irleif has joined #ruby-lang
<erikh>
hallway track go go go
imperator has quit [Quit: Leaving]
gnufied has quit [Quit: Leaving.]
Kingy has joined #ruby-lang
ruby-lang251 has joined #ruby-lang
sepp2k has joined #ruby-lang
havenn has joined #ruby-lang
Kingy has quit [Client Quit]
bosie has quit [Ping timeout: 265 seconds]
<andrewvos>
Fuck me I just tried to use the net-ssh gem to ssh into a machine, and then run ssh on that machine to ssh into another machine and modify a file.
thinkdevcode has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
<apeiros_>
andrewvos: sorry, you just don't look good enough
mrsolo has quit [Quit: Leaving]
havenn has quit [Ping timeout: 260 seconds]
<andrewvos>
I want to die
amdprophet has joined #ruby-lang
<apeiros_>
it's inevitable that you will
<andrewvos>
Reading every single webpage on the topic and they're all saying use keys, and I'm like "I FUCKING WISH I COULD PLEASE KILL ME"
<apeiros_>
:)
<andrewvos>
In other news, BBC just commited it's millionth commit to its svn repo...
<tocki_>
would it hold true if i said that class methods are singleton methods of a class object ?
d3vic3 has quit [Quit: leaving]
<tdy>
haha
<steveklabnik>
tocki_: 99% sure that is correct, yes
<andrewvos>
Damn that is so cool. I wonder how they timed committing the millionth commit or did the just commit like 100 commits?
ryanlecompte has joined #ruby-lang
tbuehlmann has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
runeb has joined #ruby-lang
<apeiros_>
tocki_: yes. they can be inherited too, though
<apeiros_>
(and those wouldn't be singleton_methods of the class object)
<apeiros_>
e.g. class Foo; end; Foo.new # <-- new is not a singleton method of Foo, it's an instance method of Class (ok, not inherited, but still an example)
havenn has joined #ruby-lang
<apeiros_>
class Foo; def self.foo; end; end; class Bar < Foo; end; Bar.foo # <-- not a singleton method of Bar, it's inherited from Foo
<apeiros_>
there :)
runeb has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby-lang
nXqd has quit [Ping timeout: 240 seconds]
qwerxy has joined #ruby-lang
ridders24 has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
erichmenge has joined #ruby-lang
erichmenge has quit [Client Quit]
<tocki_>
will class methods given in Class.new do; def meth; ...; end; end; # be inherited by subclass ?
<tocki_>
class methods can me monkey-patched via class_eval, right ?
<apeiros_>
tocki_: class methods are inherited by subclasses. see my second example.
<apeiros_>
tocki_: you can monkey patch class methods without class_eval too.
<tocki_>
i have hard time understanding class_eval, module_eval & instance_eval
dhruvasagar has quit [Ping timeout: 260 seconds]
<tocki_>
what are these guys ?
Austin__ has joined #ruby-lang
<apeiros_>
tocki_: class_eval and module_eval are exactly the same thing
<apeiros_>
instance_eval and class_eval differ slightly in scoping (couldn't tell you off my head how exactly, though)
savage- has joined #ruby-lang
rolfb has joined #ruby-lang
ryanlecompte has quit [Ping timeout: 248 seconds]
nXqd has joined #ruby-lang
<tocki_>
so instance_eval can basically add singleton methods to objects, while class_eval adds the same to classes
nertzy has quit [Quit: This computer has gone to sleep]
<apeiros_>
o0
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
<tocki_>
but.. both classes and objects have instance/class_evals
<apeiros_>
no
<apeiros_>
non-modules don't have class_eval
<apeiros_>
e.g. o = Object.new; o.class_eval # !> NoMethodError
irleif has quit [Quit: Computer has gone to sleep.]
<tocki_>
hmmz.. it seems that for instance eval within class, you don't need "class << self; .... ; end"
<tocki_>
ok.. ok.. got it
<erikh>
Classes and Modules are also Objects.
<tocki_>
.private_class_methods is actually ~.private_singleton_methods~
sepp2k has quit [Read error: Connection reset by peer]
nertzy has joined #ruby-lang
irleif has joined #ruby-lang
<tocki_>
^^ thats what it means, right ?
sepp2k has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
<Austin__>
tocki_: not necessarily.
<tocki_>
right..
<erikh>
what do you need this for?
<tocki_>
its more like ~.private_singleton_method_of_superclass~
methods has joined #ruby-lang
<steveklabnik>
tocki_: apeiros_ it's not useful to talk about methods as being 'inherited.' method lookup does rely on the ancestor chain, but talking about them as 'being inherited' obscures the issue
<tocki_>
nah
ridders24 has quit [Ping timeout: 244 seconds]
methods has left #ruby-lang [#ruby-lang]
bosie has joined #ruby-lang
<tocki_>
.class_eval & .class_exec are the same, right ?
ridders24 has joined #ruby-lang
<erikh>
...
<erikh>
what do you need this for?
<tocki_>
me?
<erikh>
yes
<tocki_>
yes
<tocki_>
for me
<erikh>
*facepalm*
macmartine has joined #ruby-lang
<tocki_>
*doubled*
<erikh>
are you solving a problem?
<steveklabnik>
learning about how ruby works
<steveklabnik>
is useful
<steveklabnik>
independent of any particular problem
<tocki_>
agreed
<erikh>
steveklabnik: when you clearly don't understand that a class is an object?
havenn has quit [Remote host closed the connection]
<steveklabnik>
erikh: how else do you expect them to learn?
<erikh>
iteratively
<steveklabnik>
at some point, nobody knows that classes are objects
<steveklabnik>
then they learn, and they know.
<steveklabnik>
i dont think belittling someone who's trying to learn is a good strategy
justinram has joined #ruby-lang
havenn has joined #ruby-lang
<steveklabnik>
to bringing them to an understanding
<erikh>
ugh
<tocki_>
erikh, your point being ?
coryf has quit [Remote host closed the connection]
<erikh>
knowing when a tool is useful is just as important as knowing how it works
<tocki_>
i respect your opinion
<steveklabnik>
erikh: +1
<tocki_>
respect mine
<erikh>
hey, if you want to blow your foot off, I won't get in your way, but I am trying to help keep you from writing pointless garbage that will only confuse you later.
mrsolo has joined #ruby-lang
ridders24 has quit [Ping timeout: 264 seconds]
<tocki_>
thank you
ridders24 has joined #ruby-lang
<darix>
erikh: if he blows off one foot. can i blow up the other one?:p
havenn has quit [Ping timeout: 260 seconds]
<erikh>
darix: no, you'll just ending up fixing his shit code
<darix>
no way jose
<erikh>
heh.
<darix>
i just ponder if i will go through the pain and rpmify etherpad-lite and all the needed nodejs libs or not
jxie has quit [Read error: Connection reset by peer]
<ddd>
so its more important to just tell people not to do something because you don't want to take the chance of having to fix some possibly shit code later, rather than explain the why its shit and shouldn't be done so he doesn't make the mistake later AND understands why its shit?
<ddd>
doesn't make sense to me
jxie has joined #ruby-lang
havenn has joined #ruby-lang
<darix>
btw: my candidate for the most stupid daemon of the week: mumble server. who would have thought that administrating a server via dbus would be cool. -.-
<erikh>
ddd: what's a singleton class? how does method dispatch work? a Class is an Object?
<darix>
ddd: after explaining things for 100 times you just hope the universe will send you people asking that question :p
<erikh>
ddd: I don't want to explain half of ruby to explain the one thing he's asking about is all
<erikh>
it's a bit like learning C by exploring how GCC's optimizer works
<tocki_>
erikh, but you don't have to explain, its ok..
<erikh>
you're right, I don't
<tocki_>
and we are cool
<tocki_>
is there a way to check if a method is an alias for another method ?
justinram has quit [Remote host closed the connection]
erichmenge has joined #ruby-lang
<darix>
tocki_: why do you care? what is the problem you are trying to solve?
<erikh>
no.
<erikh>
if it is, it's very likely implementation specific.
<tocki_>
what is o.singleton_class (if o is kind of Object)
<darix>
tocki_: that is explained in the pick axe book
<darix>
the old version is even online for free
<erikh>
steveklabnik: since you don't hang out here enough, I want you to see exactly what a help vampire does and why we go out of our way to direct them to ways they can learn themselves.
<erikh>
so pay attention :)
svyatov has joined #ruby-lang
davidbalbert is now known as davidbalber|away
<steveklabnik>
erikh: heh
<cout>
tocki: on MRI, I think you can check the method's oid (that's not normally exposed to the user, but the ruby-internal gem gives you access to it)
<tocki_>
cout, thanks.. i was just wondering if there is standard way to do this
<cout>
not that I'm aware of
svyatov has quit [Client Quit]
<tocki_>
erikh, if i disturb you in any sense, i'm sorry because of that (thank you very much for your help anyway)
<tocki_>
please feel free to use /ignore command if you feel that it will save your nerves
<tocki_>
class C; class << self; class << self; def a; ...; end; end; end; end; # like this
<apeiros_>
tocki_: the use of it is inheriting class methods
benanne has joined #ruby-lang
<tocki_>
oookk... thats cool
<tocki_>
does doing this with objects make sense ?
<tocki_>
i've seen that cloned objects share singleton class
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
Hakon has joined #ruby-lang
<tocki_>
maybe singleton class of cloned object is actually singleton class of singleton class of primitive object ?
perryh has quit [Excess Flood]
perryh has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
nitti has quit [Ping timeout: 255 seconds]
kurko_ has joined #ruby-lang
justinseiter has quit [Ping timeout: 276 seconds]
qpingu has quit [Quit: Leaving.]
qpingu has joined #ruby-lang
tonni has quit [Remote host closed the connection]
qpingu has left #ruby-lang [#ruby-lang]
cyri_ has joined #ruby-lang
havenn has quit [Remote host closed the connection]
<tocki_>
apeiros_, its not possible - if multiple classes were to derive from base class they would all have to share same singleton class (which is false)
havenn has joined #ruby-lang
methods has joined #ruby-lang
<tocki_>
since multiple openings of singleton_class of an object yield same singleton_class
<tocki_>
=> contradiction
banisterfiend has joined #ruby-lang
<apeiros_>
I have no idea what you're talking about…
<tocki_>
no - i miss understood.. you were saying that singleton classes are inheriting each other
<cout>
tocki_: every object has its own singleton class
havenn has quit [Read error: No route to host]
<tocki_>
i thought that: Base.singleton_class.singleton_class == Derived.singleton_class
ivanoats has quit [Read error: Operation timed out]
lifofifo has joined #ruby-lang
imperator has quit [Quit: This computer has gone to sleep]
lifofifo has quit [Client Quit]
<tocki_>
why is Model superclass of Class ?
keymone_ has joined #ruby-lang
<tocki_>
*Module
<i_like_rails>
Anyone know why, when using Dir.open and each, one of the directories found would fail the file? and directory? tests?? Thanks
keymone has quit [Ping timeout: 255 seconds]
keymone_ is now known as keymone
<tocki_>
permission problems ?
chad_c has joined #ruby-lang
<catepillar>
i don't understand that post, but some code (and the actual errors) would be helpful
<chad_c>
any Mechanize users out there?
<bluepojo>
i_like_rails: it's possibly a broken symlink
yxhuvud has quit [Ping timeout: 252 seconds]
<i_like_rails>
bluepojo: Ok, thanks, I will check that out
<bluepojo>
i_like_rails: are you an emacs user, perchance? it creates broken symlinks to mark open files with the user@domain of the person who opened the file.
<heftig>
i_like_rails: sockets, fifos, devices, bad symlinks
<i_like_rails>
bluepojo: I'm not, but thanks.
<i_like_rails>
heftig: Thanks
<apeiros_>
tocki_: because classes are modules
senekis_ has joined #ruby-lang
bfreeman_ has quit [Read error: Connection reset by peer]
senekis has quit [Ping timeout: 256 seconds]
bfreeman has joined #ruby-lang
i_like_rails has quit [Quit: Page closed]
nignaztic has quit [Quit: WeeChat 0.3.2]
bfreeman_ has joined #ruby-lang
bfreeman has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
mistym has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
<reactormonk>
tocki_, and Module is a class :>
blacktulip has joined #ruby-lang
senekis has joined #ruby-lang
aetcore has joined #ruby-lang
senekis_ has quit [Ping timeout: 244 seconds]
enebo has quit [Quit: enebo]
m3nd3s has quit [Remote host closed the connection]
tommylommykins has left #ruby-lang [#ruby-lang]
keymone_ has joined #ruby-lang
keymone has quit [Ping timeout: 256 seconds]
keymone_ is now known as keymone
havenn has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
havenn has joined #ruby-lang
justinmcp has joined #ruby-lang
sustainableweb has quit [Remote host closed the connection]
tbuehlmann has quit [Remote host closed the connection]