CarlB_t__ has quit [Remote host closed the connection]
gloomer has joined #ruby
ph^ has joined #ruby
CarlB_the_great has joined #ruby
SCommette has joined #ruby
rohit has quit [Remote host closed the connection]
Guest72153 has quit [Changing host]
Guest72153 has joined #ruby
digitalcakestudi has quit [Ping timeout: 268 seconds]
fyolnish has joined #ruby
ph^ has quit [Ping timeout: 246 seconds]
replore has joined #ruby
daniel_hinojosa has quit [Ping timeout: 260 seconds]
CarlB_th_ has joined #ruby
CarlB_the_great has quit [Ping timeout: 260 seconds]
mohits has quit [Read error: Connection reset by peer]
answer_42 has joined #ruby
mohits has joined #ruby
HashNuke has joined #ruby
<HashNuke>
hey guys!
<adeponte>
how is it going?
CarlB_the_great has joined #ruby
<HashNuke>
adeponte: Not so nice :)
<adeponte>
HashNuke: why is that?
stopbit has joined #ruby
<HashNuke>
I'm trying to scrape a few pages from a site. The js for the ajax call is obfuscated/packed. I had no luck in trying to undo it (so that I can figure out the params & url of the ajax call being made). Is there a way I can intercept the ajax call to get the results?
CarlB_th_ has quit [Ping timeout: 264 seconds]
<n_blownapart>
hi why does 100 > 40.object_id evaluate to true, and 100 > 50.object_id evaluate to false? thanks
<dr0id>
yw
<Hanmac>
n_blownapart: because:
<Hanmac>
>> 100.object_id
<al2o3cr>
(Fixnum) 201
<Hanmac>
>> 50.object_id
<al2o3cr>
(Fixnum) 101
<Hanmac>
object_id = fixnum * 2 + 1
dr0id has left #ruby [#ruby]
becom33 has quit [Ping timeout: 268 seconds]
<nesoi>
1.9.3 rc1 or which version?
banisterfiend` has quit [Remote host closed the connection]
<al2o3cr>
-e:1:in `eval': 0x00000000000006 is not id value (RangeError), from (eval):1:in `block in <main>', from (eval):1:in `each', from (eval):1:in `map', from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
cdepue has quit [Remote host closed the connection]
replore has quit [Remote host closed the connection]
rohit has joined #ruby
mahmoudimus has joined #ruby
forexwaldo has joined #ruby
fyolnish has quit [Remote host closed the connection]
gloomer has quit [Ping timeout: 264 seconds]
cdepue has joined #ruby
forexwaldo is now known as gloomer
<n_blownapart>
banisterfiend`: Hanmac so the method within takes the obj_id and makes a "pointer" to the original object?
<nesoi>
hm. rbenv seems to be working
<n_blownapart>
within the block ^^
<nesoi>
I had to install homebrew first, then xcode, then rbenv
Morkel has joined #ruby
<nesoi>
installing xcode first didn't work
t81339 has quit [Remote host closed the connection]
t41874 has joined #ruby
<banisterfiend`>
n_blownapart: if u ping me one more time i'm going to hang you up in the barn and whip you so hard your great grand children will feel it and cry out loud all the rest of their lives
yxhuvud has joined #ruby
Taichouc_ has joined #ruby
<Hanmac>
n_blownapart: use "ri ObjectSpace._id2ref" the method is documented
Taichouchou2 has quit [Ping timeout: 244 seconds]
<n_blownapart>
banisterfiend`: my great grandchildren will be great shamans and turn you into a warthog by going into the past and covering your white ass with thick bristles.
coderguy has joined #ruby
<Hanmac>
shevy: today is a good day because banister has been trolled :P
yasushi has quit [Remote host closed the connection]
<becom33>
if I have a variable asign as @demo = 'demo' and I wanna use it in a array like arr[:demo] i cant do arr[:@demo] how can I use that variable as array key ?
Taichouc_ has quit [Ping timeout: 246 seconds]
<Hanmac>
arr[@demo.to_sym]
<fowl>
becom33: arrays are indexed by number
Taichouchou2 has joined #ruby
cdepue has quit [Remote host closed the connection]
<becom33>
fowl associative array
<fowl>
oh. my. god.
<Hanmac>
he means a Hash
* fowl
is going into hibernation, see yall in 4 years
rgs_ has joined #ruby
jorum has joined #ruby
nari_ has joined #ruby
elico has joined #ruby
ph^ has joined #ruby
n_blownapart has quit [Remote host closed the connection]
benatkin_ has joined #ruby
benatkin_ has quit [Client Quit]
freeayu has quit [Read error: Connection reset by peer]
ph^ has quit [Ping timeout: 246 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
k0m has joined #ruby
butblack has joined #ruby
ZachBeta has joined #ruby
rohit has quit [Quit: Leaving]
coderguy has quit [Quit: coderguy]
coderguy has joined #ruby
und3f has joined #ruby
pu22l3r has joined #ruby
h4mz1d has joined #ruby
<Hanmac>
becom33 you are an ex-php user, arnt you? ... "our Arrays are different"
answer_42 has quit [Remote host closed the connection]
butblack has left #ruby [#ruby]
khakimov has quit [Quit: Computer has gone to sleep.]
LouisGB has joined #ruby
<k0m>
how are PHP arrays?
HashNuke has quit [Quit: HashNuke]
<Hanmac>
k0m in php you try todo [3,4,5] but reality you get {0=>3,1=>4,2=>5}
HashNuke has joined #ruby
<k0m>
Do you access it the same? arr[0] => 3
<Hanmac>
yeah, but it is not realy an array ... its a hash
sdwrage has quit [Quit: geekli.st/programmer]
m4tth3w has quit [Quit: Now if you will excuse me, I have a giant ball of oil to throw out my window]
<k0m>
Oh, I see
<k0m>
just checked the documentation
pu22l3r has quit [Remote host closed the connection]
thaz has joined #ruby
jorum has quit [Quit: Leaving...]
ananthakumaran has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
banisterfiend` has quit [Remote host closed the connection]
mneorr has joined #ruby
HashNuke has quit [Quit: HashNuke]
matrixise has joined #ruby
CarlB_th_ has joined #ruby
CarlB_the_great has quit [Ping timeout: 246 seconds]
mercwith1mouth has quit [Ping timeout: 240 seconds]
mneorr has quit [Remote host closed the connection]
kstephens has quit [Ping timeout: 246 seconds]
ry4nn has quit [Read error: Connection reset by peer]
ry4nn has joined #ruby
ph^ has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
ph^ has quit [Ping timeout: 246 seconds]
DrunkDave has joined #ruby
DrunkDave is now known as Guest60623
atno has joined #ruby
cdepue has joined #ruby
thone_ has quit [Read error: Operation timed out]
nesoi has quit [Quit: Leaving.]
emmanuelux has quit [Ping timeout: 272 seconds]
rubious has quit [Quit: Leaving...]
kstephens has joined #ruby
ph^ has joined #ruby
thone has joined #ruby
jacobw has joined #ruby
cdepue has quit [Ping timeout: 248 seconds]
wvms has left #ruby [#ruby]
Taichouc_ has joined #ruby
Taichouchou2 has quit [Read error: Connection reset by peer]
ken_barber1 has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
ken_barber1 has quit [Read error: Connection reset by peer]
ken_barber1 has joined #ruby
ken_barber has quit [Ping timeout: 240 seconds]
Banistergalaxy has joined #ruby
t41874 has quit [Remote host closed the connection]
t47839 has joined #ruby
ph^ has quit [Remote host closed the connection]
hipertracker has joined #ruby
<Mon_Ouie>
And that results in a lot of wasted memory
Morkel has quit [Quit: Morkel]
<Hanmac>
php is allways a memory waste :P
ranjan has quit [Ping timeout: 244 seconds]
nadirvardar has joined #ruby
imami|afk is now known as banseljaj
Taichouc_ has quit [Remote host closed the connection]
deepgray has joined #ruby
<deepgray>
hi!
deepgray has quit [Quit: Ухожу я от вас]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<epitron>
javascript has fake arrays too!
<epitron>
don't leave out our old friend ECMA
Axsuul has joined #ruby
justinmcp has joined #ruby
kstephens has quit [Ping timeout: 276 seconds]
ilyam has quit [Quit: ilyam]
davidcelis has joined #ruby
Guest60623 has quit [Quit: Leaving.]
kstephens has joined #ruby
Eldariof-ru has joined #ruby
Taichouchou2 has joined #ruby
pskosinski has joined #ruby
thaz has quit [Quit: thaz]
Synthead has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
ph^ has joined #ruby
<Hanmac>
hm i thought about an Range support class, like an array of range ... like [1,10,5] is solved like this:
<Hanmac>
>> [1,10,5].each_cons(2).with_index.map {|(a,b),i| (a < b ? (i.zero? ? a : a+1 ).upto(b) : (i.zero? ? a : a-1).downto(b))}.map(&:to_a).flatten
<becom33>
in the begining it shows s0555 and in the end it has s0555 i want everything in the middle in a variable :/
havenn has joined #ruby
<np_complete>
When I iterate through a 'File' using 'each_line', and I 'break' the iteration when a line matches a certain regexp, then I can not inject text at that point. What am I doing wrong?
Takehiro has joined #ruby
ph^ has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
<becom33>
anyone
<becom33>
shevy, ?
Guest87705 is now known as Musfuut
<shevy>
wat
wangr has joined #ruby
kstephens has joined #ruby
<shevy>
so you have a string
<shevy>
becom33 do you know how to capture with a regex
<shevy>
becom33 do you know what is a regex
banisterfiend has joined #ruby
yasushi has joined #ruby
ph^ has joined #ruby
robustus has joined #ruby
Takehiro has joined #ruby
Banistergalaxy has quit [Ping timeout: 246 seconds]
Takehiro has quit [Remote host closed the connection]
matrixise has quit [Ping timeout: 264 seconds]
mele- has joined #ruby
<becom33>
yea I know . but not expert
<mele->
anyone know of a pure ruby MP3 Tag library?
<becom33>
i think the problem is \
ph^ has quit [Ping timeout: 246 seconds]
<mele->
I found a few, but they resort to using a native library and in most cases are old
dakine has quit [Ping timeout: 246 seconds]
mele- is now known as rburton-
havenn has quit [Remote host closed the connection]
* becom33
anyone ?
<Hanmac>
pure ruby libs can be a massive performance lost ...
<becom33>
Hanmac, any idea for my problem ?
graspee has quit [Quit: leaving]
<Hanmac>
did you try str[/s0555(.*)s0555/,1] ?
HashNuke has quit [Quit: HashNuke]
<juha_>
i have foo123, how do i get only 123? i'm trying with gsub but can't figure out the right regex :D
graspee has joined #ruby
<becom33>
I dont undertand it works fine in there
<becom33>
yes Hanmac that what I tried in my script
<Hanmac>
juha_ str[/\d+/]
<shevy>
becom33 you must use a capture group
<juha_>
nice, thanks!
<Hanmac>
becom33 so and what is the problem?
<shevy>
becom33 and then access it via either $1 $2 etc... or on your matchdata object via [0]
<shevy>
becom33 do you really know what is a capture group
<shevy>
:P
wangr has quit [Quit: No Ping reply in 180 seconds.]
<Hanmac>
you could use the second parameter with string[/regex/,group]
<Hanmac>
/./m - Any character (the m modifier enables multiline mode)
t33177 has quit [Remote host closed the connection]
t8148 has joined #ruby
<shevy>
whoa
<shevy>
m enables two things?
<becom33>
umm >
<shevy>
why does m also check for newlines?
<shevy>
oh
<shevy>
yeah
<shevy>
multi lines
<shevy>
and lines are done via \n
<Hanmac>
/pat/m - Treat a newline as a character matched by . +
<Hanmac>
- the +
<shevy>
becom33, there you go, append m to your regex
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
<becom33>
hay thank works shevy , Hanmac thanks you guys <3
<shevy>
yeah Hanmac solved the mystery
<shevy>
the m was the missing character in action
<Hanmac>
this would work too: b[/s0555(?m:(.*))s0555/,1]
k_89 has joined #ruby
<k_89>
do all you ruby devs use orms?
<Hanmac>
or more interesting: [/s(\d+)(?m:(.*))s\1/,2]
<Hanmac>
k_89 what is "orms"?
<k_89>
'object relational mapper's
<rburton->
Times like this I want to cock slap Apple
ph^ has joined #ruby
<Hanmac>
k_89 i think you are in the wrong channel ... i think you want to #rubyonrails
<k_89>
be back in a sc .. i was about to bash orms :P
<Hanmac>
i never used some kind of mapper like datamapper
ph^ has quit [Remote host closed the connection]
<k_89>
orms slow the system a hell damn lot .. that makes me think .. why the fk is rails so popular .. even among biggies'
und3f has quit [Quit: Leaving.]
nadirvardar has quit [Quit: Computer has gone to sleep.]
whowantstolivefo has quit []
<k_89>
loading 400-500 objects in memory slows the system down a lot ..
<Hanmac>
k_89 you are still in the wrong channel ...
<k_89>
ahh ..ok
<k_89>
i'll do orm bashing on ror
<atno>
haha k_89
<Hanmac>
we have a three strike rule ... asking three stupid rails questions there and you will be muted
<atno>
k_89: try #rubyonrails :D
<Hanmac>
or we ignore you :P
<k_89>
hehe .. k .. already started trolling ror
<k_89>
:P
np_complete has quit [Quit: Leaving]
Mon_Ouie has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby
caveat- has quit [Disconnected by services]
Virunga has joined #ruby
caveat- has joined #ruby
niklasb has joined #ruby
pen has quit [Remote host closed the connection]
fastred has joined #ruby
x0F_ has joined #ruby
x0F has quit [Disconnected by services]
x0F_ is now known as x0F
pdelgallego has quit [Quit: pdelgallego]
ph^ has joined #ruby
guns has quit [Ping timeout: 248 seconds]
cdepue has joined #ruby
<becom33>
if Im adding values in to a hash inside a loop , if Im using val = {key, value} it only stores the last value of the loop
caveat- has quit [Disconnected by services]
Virunga is now known as LennyLinux
caveat- has joined #ruby
cdepue has quit [Ping timeout: 244 seconds]
xbayrockx has joined #ruby
<k_89>
atno, you do ruby dev too?
<atno>
nope, not yet
<becom33>
anyone ?
snearch has joined #ruby
<Mon_Ouie>
becom3: Because you replace the hash with a new hash at every iteration. Use hash[key] = value.
<k_89>
atno, btw, when i was trolling #ror with that orm hting, a guy shut me up before i could really start by stating "anyone who loads 1500 objects in memory is a fool" :P
<seanstickle>
Hanmac: I was fiddling with that some years ago.
<seanstickle>
I am a fringe language enthusiast
cuit has joined #ruby
<shevy>
vectorshelve welcome back
<shevy>
seanstickle fringe? fridge?
Trudko has joined #ruby
<Trudko>
Guys bit off topic, my friend who is average PC user, asked me to help him with programming. He want to learn to program and I am thinking what books to give him? I heard that python is good first language to learn
<vectorshelve>
shevy: yes.. so what about the design pattern doc for pacman ?
<Hanmac>
Turdko begin with C :P
<vectorshelve>
Hanmac: this dude Trudko is asked the same questions in multiple rooms including #java
<vectorshelve>
:)
<Trudko>
Hanmac: hh :)
ZachBeta has quit [Quit: Computer has gone to sleep.]
<Trudko>
vectorshelve: yes so?
<Hanmac>
Turdko imo the best learning is "C" -> "C++" -> "ruby"
<shevy>
vectorshelve I dont think you need design docs
ph^ has quit [Remote host closed the connection]
<vectorshelve>
Trudko: its isnt clear which language do you want books on :)
dpk has joined #ruby
<Trudko>
vectorshelve: my question is language agnostic as you can see
noyb has joined #ruby
t22613 has quit [Remote host closed the connection]
warr has joined #ruby
<vectorshelve>
shevy: why so ? I need to learn that in particular... help me mate or rather give me your own design pattern for the game if you think its good enough :)
<koshii>
Apparently I'm not writing in the right regex, but I've tried EVERYTHING.
adeponte has joined #ruby
horrror has joined #ruby
digitalcakestudi has joined #ruby
HashNuke has joined #ruby
<Mon_Ouie>
Somehow I always think the koans where you have to fill in a regexp like that are silly — because // matches everything
larissa has joined #ruby
ph^ has joined #ruby
qwebirc47241 has joined #ruby
<koshii>
Well I haven't tried // :)
<koshii>
Aaand it doesn't work.
<Mon_Ouie>
What is the error exactly?
<koshii>
[FillMeInError] exception expected, not Class: <ArgumentError> Message: <"wrong number of arguments (3 for 2)"> ---Backtrace--- /Users/w/Dropbox/rubyapps/edgecase-ruby_koans-9cb57ef/koans/about_methods.rb:3:in `my_global_method' /Users/w/Dropbox/rubyapps/edgecase-ruby_koans-9cb57ef/koans/about_methods.rb:42:in `block in test_calling_global_methods_with_wrong_number_of_arguments' ---------------
<Mon_Ouie>
Because even what you had should have passed
<Mon_Ouie>
That's line 42, not 39
grillo has quit [Ping timeout: 245 seconds]
<Mon_Ouie>
And the placeholder is at line 41
<koshii>
But I don't have 41 filled in.
<Mon_Ouie>
That's why the test fails
<koshii>
Argh. :-)
<koshii>
OK I got past it. Thanks Mon_Ouie
deryl has joined #ruby
fearoffish has quit [Quit: Computer has gone to sleep.]
mrck has joined #ruby
mrck has quit [Remote host closed the connection]
mrck has joined #ruby
LennyLinux has quit [Remote host closed the connection]
noam_ has quit [Ping timeout: 256 seconds]
LennyLinux has joined #ruby
jjbohn has quit [Read error: Connection reset by peer]
cdepue has quit [Remote host closed the connection]
jjbohn has joined #ruby
cdepue has joined #ruby
atno has joined #ruby
adeponte has quit [Remote host closed the connection]
<Sou|cutter>
if you have a method with an optional argument, is there a way to determine if the caller has specified that argument from within the method?
sailias has quit []
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
cdepue has quit [Ping timeout: 246 seconds]
<Mon_Ouie>
Unfortunately, no; the closest you can get is set the default value to nil, and check if the argument is nil at the beginning of the method
LennyLinux has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
quest88 has joined #ruby
wobr has joined #ruby
sailias has joined #ruby
grillo has joined #ruby
jorge has joined #ruby
wobr has quit [Client Quit]
wobr has joined #ruby
LennyLinux has joined #ruby
sailias has quit [Client Quit]
brianpWins has quit [Quit: brianpWins]
Agis__ has quit [Quit: Agis__]
sepp2k has quit [Ping timeout: 246 seconds]
moshef has joined #ruby
shevy has quit [Ping timeout: 268 seconds]
LennyLinux has quit [Remote host closed the connection]
jorum has quit [Quit: Leaving...]
maletor has joined #ruby
wobr has quit [Ping timeout: 246 seconds]
schaerli_ has joined #ruby
SegFaultAX has joined #ruby
HashNuke has quit [Quit: HashNuke]
otters has quit [Ping timeout: 244 seconds]
schaerli has quit [Ping timeout: 244 seconds]
HashNuke has joined #ruby
LennyLinux has joined #ruby
asklov has joined #ruby
<moshef>
if I have a class name Scope::ClassName
<moshef>
how will I get only the class name? without some ugly regex/gsub?
<davidcelis>
.to_s.gsub(/^.*::/, '')
LennyLinux has quit [Remote host closed the connection]
<davidcelis>
i decided to combine both of the things you didn't want
<davidcelis>
but IMO that's a pretty tame regex
ken_barber has joined #ruby
GuidovanPossum has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
<moshef>
:D
ken_barber has quit [Read error: Connection reset by peer]
<moshef>
seriously tho, nothing in the ruby spirit?
ken_barber has joined #ruby
hipertracker has quit [Quit: hipertracker]
ken_barber has quit [Read error: Connection reset by peer]
shevy has joined #ruby
<davidcelis>
?
<davidcelis>
wasn't aware that the "ruby spirit" was to avoid gsub and regexp
jrajav has joined #ruby
<davidcelis>
you could use ActiveSupport::Inflector from Rails, which provides a `demodulize` method
ken_barber has joined #ruby
<shevy>
davidcelis hmm is it? I like .gsub
<shevy>
Regexp.new I dont like that much though
<davidcelis>
but ActiveSupport does the gsub i described above
<shevy>
matchdata object I like
<shevy>
what kills my brain is... Regexp.quote or whatever was the name again...
adeponte has joined #ruby
<shevy>
ActiveSupport is evil
<davidcelis>
ActiveSupport is pretty awesome, actually
adeponte has quit [Read error: Connection reset by peer]
<davidcelis>
it provides a lot of good shit
sepp2k has joined #ruby
larissa has quit [Ping timeout: 264 seconds]
<bperry>
shevy: I think I know what you are getting at, but evil is a strong word :)
<bperry>
why do you think it is 'evil'
<shevy>
bperry lemme count how many methods it has
<davidcelis>
he probably just means the general fear of it being "magical"
<davidcelis>
lol number of methods?
<bperry>
yeah I am not sure why number of methods determined evilness
<shevy>
who would have thought that activesupport is naughty
ph^ has quit [Remote host closed the connection]
<Hanmac>
or "axis" into "axes"
joshman_ has joined #ruby
t60442 has quit [Remote host closed the connection]
mascool has joined #ruby
t91785 has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
gloomer has joined #ruby
<bperry>
the inflection actually does annoy
verto is now known as verto|off
maletor has quit [Quit: Computer has gone to sleep.]
moshef has joined #ruby
<moshef>
I'd like to have a class where all my class methods are my instance methods run with self.method_name (or the other way around, don't care). what would be the best way to achieve that?
jorum has joined #ruby
ibash_ has joined #ruby
rins_ has joined #ruby
haxrbyte has quit [Remote host closed the connection]
veer has joined #ruby
veer is now known as Guest60729
haxrbyte has joined #ruby
Virunga has joined #ruby
Virunga has quit [Remote host closed the connection]
banisterfiend` has joined #ruby
<moshef>
anyone?
carrythe1ero has joined #ruby
joshman_ has quit [Quit: Computer has gone to sleep.]
Viper has joined #ruby
Viper is now known as Guest91927
companion_ has joined #ruby
dnyy__ has joined #ruby
haxrbyte has quit [Ping timeout: 276 seconds]
jearvondharrie has joined #ruby
eighty4_ has joined #ruby
shaman42_ has joined #ruby
nahhh has quit [Read error: Operation timed out]
BSaboia has quit [Read error: Connection reset by peer]
NiteRain has quit [Ping timeout: 246 seconds]
ibash has quit [Ping timeout: 246 seconds]
carrythezero has quit [Ping timeout: 246 seconds]
cool has quit [Ping timeout: 246 seconds]
rins has quit [Read error: Connection reset by peer]
dnyy_ has quit [Ping timeout: 246 seconds]
companion has quit [Ping timeout: 246 seconds]
davidboy has quit [Ping timeout: 246 seconds]
neersighted has quit [Ping timeout: 246 seconds]
ibash_ is now known as ibash
tchebb has quit [Ping timeout: 246 seconds]
zii has quit [Ping timeout: 246 seconds]
Guest98333 has quit [Ping timeout: 246 seconds]
<Hanmac>
moshef you are looking for module and module_function
GuidovanPossum has left #ruby [#ruby]
strcrzy_ has quit [Ping timeout: 246 seconds]
banisterfiend has quit [Ping timeout: 246 seconds]
ctevie has quit [Ping timeout: 246 seconds]
Gonzih has quit [Ping timeout: 246 seconds]
eighty4 has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Ping timeout: 246 seconds]
allsystemsarego has joined #ruby
shaman42 has quit [Ping timeout: 246 seconds]
allsystemsarego has quit [Quit: Leaving]
tris has quit [Excess Flood]
Hanmac has quit [Ping timeout: 246 seconds]
ctevie has joined #ruby
ctevie has joined #ruby
ctevie has quit [Changing host]
companion_ is now known as companion
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
ctevie has joined #ruby
ctevie has quit [Changing host]
berserkr has joined #ruby
companion has quit [Changing host]
companion has joined #ruby
strcrzy has joined #ruby
Virunga has joined #ruby
Hanmac has joined #ruby
<moshef>
any example?
Virunga has quit [Remote host closed the connection]
jorge has quit [Remote host closed the connection]
t91785 has quit [Remote host closed the connection]
<Hanmac>
>> module A; module_function; def x;end;end; class B; include A; def y;x;end;end; B.new.y
<al2o3cr>
(NilClass) nil
t44360 has joined #ruby
<moshef>
yeah found something, thanks dude
<moshef>
let me try
ibash has quit [Quit: ibash]
<shevy>
bperry what does "inflection" mean in rails context? or in active support context? I have not seen the word before actually... dictionary says... "turning point"
ph^ has joined #ruby
nim__ has quit [Ping timeout: 246 seconds]
<bperry>
rails will inflect your table names for you, make them pluralized
<bperry>
so tickets_to_be_procesed becomes tickets_to_be_processeds
<bperry>
and then you wonder why all your sql queries don't work
<bperry>
because it does it magically
DrShoggoth has joined #ruby
davidboy has joined #ruby
<fowl>
aint life gr8
<shevy>
ah I see
tchebb has joined #ruby
whowantstolivef has joined #ruby
whowantstolivef is now known as whowantstolivefo
NiteRain has joined #ruby
tris has joined #ruby
ilyam has joined #ruby
ilyam has quit [Client Quit]
mascool has quit [Ping timeout: 244 seconds]
tris has quit [Excess Flood]
asklov has quit [Ping timeout: 240 seconds]
KevinSjoberg has joined #ruby
<moshef>
Hanmac: I def some_method in my module, and then include it within my class. On the class I can't run Class.some_method?
<moshef>
am I missing something?
bd0 has joined #ruby
<bperry>
including isn't inheritance?
schaerli_ has quit [Ping timeout: 252 seconds]
<koshii>
What does the asterisk mean here def method_with_var_args(*args)
<koshii>
Does * just mean "take as many arguments as you get" ?
<bperry>
arbirary array of args
<bperry>
arbitrary*
<koshii>
bperry: So, as many as I want to give
<bperry>
yep
<koshii>
Cool. Thanks!
<KevinSjoberg>
bperry: That will define a instance method, not a class method.
<bperry>
some people call it splat
<KevinSjoberg>
moshef: I mean
<moshef>
KevinSjoberg: it doesn't define both class and instance?
<moshef>
include MyModule within the other class right?
<KevinSjoberg>
Correct.
ph^ has quit [Remote host closed the connection]
<moshef>
and you can Class.some_method and Class.new.some_method?
diegoviola has joined #ruby
<moshef>
think I'm having a problem to load my classes, that freaking rails dev boost crappy plugin
alcuadrado has joined #ruby
<alcuadrado>
can anyone help me with maruku?
<alcuadrado>
I'm formatting a kindle book with markdown and compiling it with maruku
Virunga has quit [Remote host closed the connection]
<alcuadrado>
but it gives me error when I use kindle specific pagebreaks: <mbp:pagebreak />
ringotwo has quit [Remote host closed the connection]
<moshef>
KevinSjoberg: getting expected /.../my_module.rb to define my_module
Asher has joined #ruby
<moshef>
KevinSjoberg: I'm using ruby 1.8.7 if this matters..
<KevinSjoberg>
moshef: My code was just a guideline.
<KevinSjoberg>
Hold on, I'll fix it so it work.
<moshef>
KevinSjoberg: well not sure what I'm missing..
ringotwo has joined #ruby
deryl has quit [Quit: deryl]
havenn has quit [Remote host closed the connection]
<moshef>
its supposed to be the full bass.class_eval do extend class methods etc?
nim_ has joined #ruby
havenn has joined #ruby
<moshef>
base.cass_eval * ..
<KevinSjoberg>
moshef: I've updated it. https://gist.github.com/5da243ed0926a7a2f7b8. Make sure you use the correct name. If the module name is MyModule you need to include it as such.
<KevinSjoberg>
It's case sensitive.
<moshef>
KevinSjoberg: its exactly what I'm doing..
<moshef>
starting to become annoying :
<moshef>
:(
<KevinSjoberg>
What error message do you get?
havenn has quit [Ping timeout: 276 seconds]
<moshef>
tried to include another class and had the expected to define bla bla
burgestrand has quit [Quit: Leaving.]
mercwith1mouth has joined #ruby
<moshef>
but now I also tried to use it with the old class, and for Class.some_method I'm getting undefined but it does seem to work for Class.new.some_method
k_89 has joined #ruby
<moshef>
think my ruby might need a refresh :D
baphled has quit [Ping timeout: 248 seconds]
burgestrand has joined #ruby
<moshef>
can you access it both as instance and class?
<KevinSjoberg>
moshef: Yes.
<moshef>
ill create another class, lets see
<KevinSjoberg>
moshef: Just ran my code through the terminal. Exactly the code from the gist. It worked. Tried MyClass.say_hello and MyClass.new.say_hello
<KevinSjoberg>
Both returned "Hello!"
ibash has joined #ruby
ibash has quit [Client Quit]
Tref has joined #ruby
<moshef>
hmm
<moshef>
looks like something related to the loading is fucked up a bit
<KevinSjoberg>
moshef: Although I'm using Ruby 1.9.3.
<moshef>
oh
<moshef>
can you try run it on 1.8.7?
<KevinSjoberg>
Sure, I'll install it first. Give me a few seconds.
<moshef>
thanks dude
<moshef>
I'm about to do this shit un-DRY :x
Xeago has joined #ruby
<Hanmac>
you could use some method_missing hook
<moshef>
hmm
<Xeago>
well, that restart last about 36 hours :\
<moshef>
I thought I can just create a list of methods and tell ruby to create class one for each instance method
<KevinSjoberg>
Hanmac: Well, that should be avoided if possible. Overriding method_missing should be last case solution.
<moshef>
thought its 5 lines
<moshef>
yeah I'm not that trilled with that idea either
<KevinSjoberg>
moshef: I'm installing GCC, seems versions lower than 1.9.2 need the official GCC package.
<KevinSjoberg>
moshef: Or wait, I'll just use the system version of Ruby.
<KevinSjoberg>
One sec.
<moshef>
you're not using rvm?
CarlB_the_great has joined #ruby
<moshef>
dont you to get into too much trouble over this..
<Hanmac>
moshef i use system ruby, because the system version is 1.9.3p194
<moshef>
dont want*
<moshef>
ok
<Mon_Ouie>
becom33: What does it change?
ringotwo has quit [Remote host closed the connection]
<KevinSjoberg>
moshef: This works fine in Ruby 1.8.7 as well.
<moshef>
yeah I just changed it to something else and got the same problem
<KevinSjoberg>
Open a IRB session and copy paste my code. Does that work?
<moshef>
doing something wrong with the files themselves
baphled has joined #ruby
<KevinSjoberg>
I've got to go. But the code is confirmed in 1.8.7 and above.
<moshef>
hmm
cj3kim has quit [Quit: This computer has gone to sleep]
<moshef>
last question, if my class is defined as Class::ClassName, this can disturb it anyway?
CarlB_th_ has joined #ruby
sysbeast has joined #ruby
meskyanichi has joined #ruby
ananthakumaran has quit [Ping timeout: 244 seconds]
<shevy>
disturb what
<shevy>
it is just a namespace
<moshef>
hmm
kiyoura has quit [Quit: Leaving]
<shevy>
class Class; class ClassName; end; end
<shevy>
I dont understand why you want to modify class Class though
CarlB_the_great has quit [Ping timeout: 252 seconds]
<shevy>
I want module Class to work :(
mikekelly has quit [Ping timeout: 250 seconds]
TheLZA has quit [Quit: Bye]
hipertracker has joined #ruby
<Xeago>
urgh, my system is horribly broken
<moshef>
shevy: what?
<shevy>
Xeago dont use windows!!!
tommyvyo has quit [Quit: Computer has gone to sleep.]
<shevy>
moshee, class Class works. module Class does not
<Xeago>
I killed my os x install shevy
<shevy>
Xeago and you put os x back up? or another OS
<Xeago>
Xeago
<Xeago>
err
<Xeago>
o sx
<Xeago>
lal
<shevy>
hmm
<Xeago>
I worked as root one day
<Xeago>
ruined it
<shevy>
I still have not tested oxs myself
<shevy>
*osx
<Xeago>
reinstalled over old install
<shevy>
hehe
<Xeago>
but as expected everything that was symlinekd
<Xeago>
no longe ris
<shevy>
welcome to linux! I reinstall like at least once every month
<shevy>
oh wait... that is curious
<Xeago>
safari doesn't start on this borken install
<shevy>
what kind of symlinks do you mean?
<Xeago>
symlinks I made
<shevy>
symlinks from programs to system directories?
<shevy>
ah ok... so your personal symlinks... not system ones
<Xeago>
yea
<shevy>
gobolinux uses a scheme like /Programs/Glibc/2.15 -> symlinked into /System/Links (and subdirectories there)
<Xeago>
and git is not in $PATH
t44360 has quit [Remote host closed the connection]
t11933 has joined #ruby
_justin has joined #ruby
<Xeago>
looks like xcode is no longer in my path
<Xeago>
it used to be
<Xeago>
but then again
<Xeago>
no
<Xeago>
never had it in my path
<Xeago>
had command line tools installed
<Xeago>
xcode is installed on this install, but commandline tools apparently not
<_justin>
anybody who have worked with koala gem ??
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
cj3kim has quit [Client Quit]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<_justin>
the photo tagging is working perfectly on my local server, but it doesn't work once its uploaded on heroku
<fowl>
HERO-KU
<_justin>
fowl: hero-ku!!
ananthakumaran has joined #ruby
nadirvardar has joined #ruby
ringotwo has joined #ruby
johnjohnson has quit []
nadirvardar has quit [Client Quit]
ringotwo has quit [Remote host closed the connection]
havenn has joined #ruby
elaptics is now known as elaptics`away
nadirvardar has joined #ruby
siameseguy has quit [Quit: siameseguy]
phanousit has joined #ruby
<moshef>
can I do something like ["method_one", "method_two".each do {|m| def m; puts "something nice"; end} ?
<burgestrand>
moshee: use define_method, or define_singleton_method, depending on which one you want. It will do that for you.
Eldariof-ru has joined #ruby
Tref has quit [Quit: Tref]
<moshef>
any example?
ananthakumaran has quit [Ping timeout: 244 seconds]
<moshef>
k trying..
vitor-br has joined #ruby
canton7 has joined #ruby
phanousit has quit [Ping timeout: 272 seconds]
CarlB_th_ has quit [Remote host closed the connection]
gfontenot has joined #ruby
ph^ has joined #ruby
adeponte has joined #ruby
answer_42 has joined #ruby
gfontenot has quit [Client Quit]
<moshef>
burgestrand: for params I just do define_method(name, param) ?
<burgestrand>
moshef: how would that work?
jjbohn has quit [Read error: Connection reset by peer]
<moshef>
it cant
<burgestrand>
moshef: you give define_method a name, and a block. The block receives the parameters when invoked.
billyoc has joined #ruby
ananthakumaran has joined #ruby
havenn has quit [Remote host closed the connection]
<shevy>
I want to ban the nick burgestrand
<shevy>
when I read his nick I get hungry
<moshef>
lol
<shevy>
:(
berkes has joined #ruby
jjbohn has joined #ruby
frogprince_mac has joined #ruby
<Hanmac>
the other nick ... the ban fiend is more anoying
<moshef>
shevy: can't pass default value in 1.8.7, seems like its possible in later versions
<moshef>
ruby versions *
ph^ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
CarlB_the_great has joined #ruby
<shevy>
Hanmac yeah but when it comes to repeated horse p0rn spam the only solution is to ignore the spammer
_justin has quit [Remote host closed the connection]
<moshef>
k it works anyhow just raises some warning
Chryson has joined #ruby
ken_barber1 has joined #ruby
Xeago has joined #ruby
moshef has quit [Quit: moshef]
<Xeago>
blurgh
<Xeago>
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: (index >= 0) && (index < [_itemArray count])'
<Xeago>
when I start safari
ken_barber has quit [Ping timeout: 260 seconds]
xorpnox has joined #ruby
schaerli has joined #ruby
<shevy>
hehe
<Xeago>
anyone mind looking it up
<Xeago>
as I kinda have no browser to google :\
Xeago has quit [Remote host closed the connection]
<shevy>
k
<canton7>
"updating safari may help"
<shevy>
"Download and install Safari 6 from this link (it's the link used by software update to download Safari6 for Lion 10.7.4) :"
<shevy>
"Have you restarted in Safe Mode or done both a iMac SMC and PRAM reset? If not do all of these at least 2x each. The Safe Mode restart will clear some caches. "
jenrzzz has quit [Ping timeout: 244 seconds]
schaerli has quit [Remote host closed the connection]
<shevy>
Xeago come to the dark side man
<shevy>
come to linux
ph^ has joined #ruby
adeponte has quit [Remote host closed the connection]
t11933 has quit [Remote host closed the connection]
t45014 has joined #ruby
<Xeago>
running linux on every other machine besides this one
<Xeago>
Safe Mode, is not single user mode right>
Eldariof59-ru has joined #ruby
<fowl>
run it in windows 96 mode
lggr has joined #ruby
Eldariof-ru has quit [Ping timeout: 240 seconds]
savage- has quit [Remote host closed the connection]
<shevy>
Xeago sorry absolutely no idea
ringotwo has joined #ruby
<shevy>
as I have a horrible brain, I always write down useful things for linux
savage- has joined #ruby
moshef has joined #ruby
brianpWins has quit [Ping timeout: 246 seconds]
noam has quit [Ping timeout: 246 seconds]
jasonkuhrt has quit [Quit: Leaving...]
brianpWins has joined #ruby
seanyo has joined #ruby
moshef has quit [Client Quit]
mercwith1mouth has quit [Ping timeout: 264 seconds]
schaerli has joined #ruby
ph^ has quit [Read error: Connection reset by peer]
jorge has joined #ruby
noam has joined #ruby
supergiantrobot_ has quit [Quit: supergiantrobot_]
frogprince_mac has quit [Quit: Leaving...]
BrianJ has joined #ruby
daniel_hinojosa has joined #ruby
thaz has joined #ruby
zii has joined #ruby
peregrine81 has quit [Quit: Computer sleeping.]
Gonzih has joined #ruby
Trudko has quit [Ping timeout: 245 seconds]
<Xeago>
let's hope that installing safari6 will be the solution
<Xeago>
joooh,
<Xeago>
stuff started working
<Xeago>
!
Eldariof27-ru has joined #ruby
tiripamwe has quit [Ping timeout: 276 seconds]
schaerli has quit [Remote host closed the connection]
quest88 has left #ruby [#ruby]
Eldariof59-ru has quit [Ping timeout: 240 seconds]
Axsuul has joined #ruby
Vert has joined #ruby
vitor-br has quit [Quit: Saindo]
Virunga has joined #ruby
Xeago has quit [Remote host closed the connection]
alexwh has joined #ruby
Poapfel has quit [Quit: WeeChat 0.3.7]
Xeago has joined #ruby
otters has quit [Quit: WeeChat 0.3.8]
Poapfel has joined #ruby
parus has quit [Read error: Operation timed out]
parus_ has joined #ruby
eridani has quit [Read error: Connection reset by peer]
eridani has joined #ruby
Poapfel has quit [Client Quit]
Poapfel has joined #ruby
peregrine81 has joined #ruby
jjbohn has quit [Quit: Leaving...]
wereHamster has quit [Ping timeout: 265 seconds]
jjbohn has joined #ruby
wereHamster has joined #ruby
snearch has quit [Quit: Verlassend]
jorge has quit [Remote host closed the connection]
billyoc has quit [Quit: switching to ERC]
jorge has joined #ruby
jorge has quit [Remote host closed the connection]
Eldariof-ru has joined #ruby
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
t45014 has quit [Remote host closed the connection]
t27594 has joined #ruby
Eldariof27-ru has quit [Ping timeout: 252 seconds]
ananthakumaran has quit [Ping timeout: 244 seconds]
k0m has joined #ruby
<jearvondharrie>
when you define a ==method say def ==(game); true; end do you pass in the argument like a regular method == game ?
jorge has joined #ruby
alta is now known as alta189
xorpnox has quit [Quit: xorpnox]
Foxandxss has joined #ruby
<canton7>
yup.
berkes has quit [Quit: Ex-Chat]
<k0m>
yeah
<fowl>
>> o = Object.new; def o.==(x) puts x * 7298347 end; o == 50
<al2o3cr>
(NilClass) nil, Console: 364917350
<canton7>
grr my clipboard's gone on broken again. otherwise i've got a pastie :P
<shevy>
I would change self.games = games to @games = games
rdg has joined #ruby
<shevy>
are you sure that def ==(game) works
seanyo has quit [Ping timeout: 240 seconds]
<fowl>
i just showed you
<Hanmac>
>> a=(0/0.0); a == a
<al2o3cr>
(FalseClass) false
<fowl>
>> o = Object.new; def o.==(x) puts "#{x} is a newbie!" end; o == "shevy"
<al2o3cr>
(NilClass) nil, Console: shevy is a newbie!
<shevy>
fowl, no I meant his code
<jearvondharrie>
shevy: not sure its from codeschool
<shevy>
name == game.name && system == game.system && year == game.year
<shevy>
because you use such things which look like local variables
<fowl>
shevy: you newbie, do you not see the attr_accessor?
<k0m>
So I just went through this http://vim-adventures.com/ and want to learn more about Vim and configuring it. Does anyone know a good place to start?
<shevy>
fowl well then there is no error in his code I suppose
seanyo has joined #ruby
alta189 is now known as alta
<jearvondharrie>
but == in game.rb takes a game and in Lib class game == games passes?
<fowl>
jearvondharrie: you dont show the call to Library#has_game? or where its initialized
<fowl>
jearvondharrie: i dont see anything wrong with that code
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
seanyo_ has quit [Ping timeout: 264 seconds]
havenn has quit [Ping timeout: 240 seconds]
<shevy>
jearvondharrie if you have an error, what is the actual error?
rdg has quit [Quit: ttfn]
<shevy>
k0m #vim :D the basic key commands are quite easy to learn ... 5dd <-- delete 5 lines
Takehiro has quit [Remote host closed the connection]
<jearvondharrie>
shevy: not any error, just dont understand the reason the code passes the test
<jearvondharrie>
shevy: giving it a second read to see if im missing a small detail
johnjohnson has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
<Hanmac>
the only commands i use in vim are q! and wq!
<matti>
shevy shevy shevy
<shevy>
I dunno, I hate this code you showed :)
<shevy>
let's ask detective matti to have a look
<fowl>
Hanmac: you have to press i to start typing, lul
<BrianJ>
I'm running a standalone ruby script and I need to pass in variables. I'm assigning the variables values to ARGV[0] through 6.. is there a better way of doing this with like symbols?
<fowl>
jearvondharrie: like i said, its not shown how has_game? is called, at least not to me..
<matti>
BrianJ: OptParse?
<BrianJ>
matti: I'll take a look into that
<jearvondharrie>
fowl: i am not sure either, but i think they probably have some iteration method and then calls has_game? one each iteration
<matti>
BrianJ: ARGF
chimay has quit [Quit: WeeChat 0.3.9-rc1]
tommyvyo has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
ringotwo has quit [Remote host closed the connection]
seanyo has quit [Ping timeout: 245 seconds]
horrror has quit [Quit: horrror]
berkes has joined #ruby
<shevy>
matti I think the problem is that jearvondharrie did not write the code by himself
<aknagi>
progme: Object (with a capital) is a class.
dmiller has quit [Remote host closed the connection]
schaerli has joined #ruby
otters has quit [Ping timeout: 244 seconds]
<aknagi>
progme: It's kind of the mother of all things in ruby, because most things are objects.
t58187 has quit [Remote host closed the connection]
<progme>
Ok
t25734 has joined #ruby
<progme>
I am getting an obscure error with a Ruby app and I am not a Ruby guy... So I am trying to figure out if Ruby or Rails is out of date
<shevy>
and what error is that
wo66le has joined #ruby
<aknagi>
progme: Yer - pastie it.
<progme>
It's a one liner: /usr/local/redmine-2.0/plugins/engines/init.rb:3: undefined local variable or method `config' for main:Object (NameError)
goodieboy has quit [Remote host closed the connection]
<progme>
config appears to be a rails thing
<shevy>
then this method does not exist
<shevy>
rails uses ruby code just as well
<shevy>
but redmine is a rails app
<progme>
The redmine site says I should be on Ruby 1.8.7, 1.9.2 or 1.9.3. Currently, I am on 1.8.7 and would like to upgrade to 1.9.2 but do not know how or if this would even fix my problem
<progme>
my rails and gems versions are in line with the reqs
schaerli has quit [Remote host closed the connection]
<macer1>
and it is crashing every time
<macer1>
emm or no its not
dev_ryan70 has quit [Ping timeout: 276 seconds]
gloomer has quit [Ping timeout: 245 seconds]
justsee has quit [Quit: Leaving...]
Targen_ has joined #ruby
Targen has quit [Ping timeout: 244 seconds]
datapolitical has joined #ruby
gloomer has joined #ruby
fantazo has joined #ruby
khakimov has quit [Ping timeout: 252 seconds]
t25734 has quit [Remote host closed the connection]
t51447 has joined #ruby
otters has joined #ruby
yasushi has joined #ruby
TTilus has quit [Ping timeout: 244 seconds]
khakimov has joined #ruby
Takehiro has joined #ruby
TTilus has joined #ruby
jenrzzz has joined #ruby
erichmenge has joined #ruby
yasushi has quit [Ping timeout: 245 seconds]
Tearan has joined #ruby
SCommette has joined #ruby
havenn has quit [Remote host closed the connection]
replore_ has quit [Remote host closed the connection]
Tearan has quit [Client Quit]
Takehiro has quit [Ping timeout: 252 seconds]
punkrawkR has quit [Read error: Connection reset by peer]
LouisGB has quit [Ping timeout: 246 seconds]
lkba has quit [Ping timeout: 248 seconds]
datapolitical has quit [Quit: Leaving]
SCommette has quit [Quit: SCommette]
replore_ has joined #ruby
hipertracker has quit [Quit: hipertracker]
Markvilla has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
SCommette has joined #ruby
dakine has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
rakl has joined #ruby
Foxandxss has joined #ruby
jonathanwallace has quit [Ping timeout: 272 seconds]
tiripamwe has quit [Ping timeout: 268 seconds]
becom33 has quit [Ping timeout: 248 seconds]
acies has quit [Ping timeout: 248 seconds]
brianpWins has joined #ruby
becom33 has joined #ruby
gfontenot has joined #ruby
iifseq has joined #ruby
SCommette has quit [Quit: SCommette]
bradhe has joined #ruby
acies has joined #ruby
<iifseq>
I am sorry if this question is silly, but it is ungoogleable. I am new to programming, and when I read ruby code I always find this thing "=>", and it seems to mean '(the thing to the left) has the value (the thing to the right)'. What is this => called?
justsee has quit [Quit: Leaving...]
lkba has joined #ruby
<seanstickle>
iifseq: hash-rocket
<canton7>
in ruby, it's normally called "hash rocket syntax", or something similar
<iifseq>
Thank you, and most of all, thank you for being patient with a noob!
replore_ has quit [Remote host closed the connection]
ph^ has quit [Read error: Connection reset by peer]
ph^ has joined #ruby
hipertracker has joined #ruby
fyolnish_ has quit [Remote host closed the connection]