apeiros_ changed the topic of #ruby-lang to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 244 seconds]
Lumio has quit [Quit: Lumio]
nathanstitt has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
nathanstitt has joined #ruby-lang
|jemc| has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
d9k_ has joined #ruby-lang
enebo has quit [Quit: enebo]
|jemc| has quit [Client Quit]
<d9k_> hi! I'm ruby noob. I've installed visualruby from http://visualruby.net/site/Download.html, but when I run vr command from terminal it tells me it's unknown command. xubuntu 14.04
<d9k_> ruby version 1.9.3
djbkd has joined #ruby-lang
<d9k_> `gem list --remote --all visualruby` => visualruby (1.0.16, 1.0.14, 1.0.13, 1.0.12, 1.0.0, 0.1.1, 0.1.0)
<d9k_> pls help
sdouglas has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
<d9k_> hey! is anybode here?
|jemc| has joined #ruby-lang
<d9k_> *Is anybody here?
btcftw21 has quit [Remote host closed the connection]
btcftw21 has joined #ruby-lang
<mistym> d9k_: Do you know where the gem was installed to? Depending on how you installed Ruby and how you called `gem install`, it might not be in your PATH.
davispuh has quit [Remote host closed the connection]
<d9k_> mistym, I don't know. Can I run some commands to search for ruby gems paths?
<mistym> d9k_: How do you have Ruby installed?
willmarshall has joined #ruby-lang
<d9k_> mistym, I think it goes together with xubuntu 14.04
<mistym> d9k_: Did you call "gem install" with sudo, or without?
<d9k_> I called it with sudo
btcftw21 has quit [Ping timeout: 240 seconds]
<d9k_> I've searched for commands history and I found `sudo apt-get install ruby`
<d9k_> sorry for bad english
<d9k_> I have no vr command under root too.
<mistym> d9k_: No problem
MikaAK1 has quit [Quit: node-irc says goodbye]
<mistym> d9k_: So you ran `sudo gem install visualruby`? (Not with backticks)
<d9k_> `gem install visualruby` without `sudo` causes `You don't have write permissions into the /var/lib/gems/1.9.1 directory.` error
<d9k_> Yes, I ran `sudo gem install visualruby`
MikaAK1 has joined #ruby-lang
dsaint-pierre has joined #ruby-lang
ddv has quit [Ping timeout: 245 seconds]
MikaAK1 has quit [Client Quit]
ddv has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
<d9k_> interesting. `sudo gem uninstall visualruby` causes `gem "visualruby" is not installed`
shinnya has quit [Ping timeout: 240 seconds]
<d9k_> maybe there was some error during installation and I didn't notice
CaptainJet has joined #ruby-lang
knu has quit [Ping timeout: 245 seconds]
knu has joined #ruby-lang
dwayhs_ has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
mehlah has quit [Quit: Leaving...]
<zenspider> I _love_ it when gems don't list where the source is
<zenspider> d9k_: there is no `bin/vr` as far as I can tell
<zenspider> oh. there is. but it isn't in bin, and I highly doubt the gem is set up right
<zenspider> no, doesn't look like it.
dwayhs_ has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
sdouglas has joined #ruby-lang
sdouglas has quit [Read error: Connection reset by peer]
sdouglas has joined #ruby-lang
lewix has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
lewix has joined #ruby-lang
saarinen has joined #ruby-lang
chouhoulis has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistym has quit [Remote host closed the connection]
lewix has quit [Ping timeout: 244 seconds]
djbkd has quit [Remote host closed the connection]
sepp2k1 has quit [Read error: Connection reset by peer]
dwayhs_ has joined #ruby-lang
yubrew has joined #ruby-lang
marr has quit []
dwayhs_ has quit [Ping timeout: 240 seconds]
jeffs_ has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
<d9k_> zenspider, thanks. It's late I'm going to bed. Good bye everyone!
d9k_ has quit [Quit: Page closed]
yubrew has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
karamazov has joined #ruby-lang
jeffs_ has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
mndoci has joined #ruby-lang
allomov has joined #ruby-lang
mistym has joined #ruby-lang
djbkd has joined #ruby-lang
ur5us has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
stardiviner has joined #ruby-lang
djbkd has joined #ruby-lang
allomov has quit [Ping timeout: 245 seconds]
knu has quit [Ping timeout: 244 seconds]
knu has joined #ruby-lang
stardiviner has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
mistym_ has joined #ruby-lang
mistym has quit [Ping timeout: 244 seconds]
spuk_ has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 245 seconds]
spuk has joined #ruby-lang
Averna has joined #ruby-lang
lewix has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
stardiviner has joined #ruby-lang
mndoci has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 240 seconds]
willmarshall has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cored has quit [Ping timeout: 244 seconds]
saarinen has quit [Quit: saarinen]
robbyoconnor has joined #ruby-lang
vick has joined #ruby-lang
vick is now known as Guest44699
karamazov has quit []
<Guest44699> I've just started to read "Programming Ruby" and...
<Guest44699> if "я" =~ /\w/; puts "я is a letter"; else puts "WTF?!"; end
<Guest44699> Does Ruby only work with ASCII?!
<Guest44699> I'm using 2.1.2
<|jemc|> well, obviously it "works" with 'я'
<|jemc|> or else it couldn't print it
<ari-_-e> Guest44699: hm?
<|jemc|> Guest44699: check out the "POSIX bracket expressions" in the docs for Regexp
<ari-_-e> why do you ask if it only works with ascii?
<Guest44699> <ari-_-e>: \w should obviously match "я"
<Guest44699> Ancient POSIX crap? Pardon my Japanese... seriously?
<ari-_-e> Guest44699: it all depends on how unicode defines the characters
yubrew has joined #ruby-lang
<Guest44699> Well, at least \p{L} seems to work...
<ari-_-e> and what ruby considers to be a "word character"
<Guest44699> <ari-_-e>: How about General Category = Letter... and Connector Punctuation, maybe (for underscore)
<Guest44699> alright, I see... nevermind
katlogic has quit [Ping timeout: 276 seconds]
<nofxx> Guest44699, def √ n; n**0.5 end
<nofxx> √9 # 3
dwayhs_ has joined #ruby-lang
<nofxx> can't get more unicode
<ari-_-e> so unicode
yubrew has quit [Ping timeout: 264 seconds]
lewix has quit [Remote host closed the connection]
lewix has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
dwayhs_ has quit [Ping timeout: 244 seconds]
arBmind1 has joined #ruby-lang
katlogic has joined #ruby-lang
danijoo has joined #ruby-lang
Guest44699 has quit [Quit: Page closed]
arBmind has quit [Ping timeout: 240 seconds]
lewix has quit [Ping timeout: 255 seconds]
lewix has joined #ruby-lang
Asher has quit [Quit: Leaving.]
Asher has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
dm78 has joined #ruby-lang
insidious has joined #ruby-lang
saarinen has joined #ruby-lang
sdouglas has joined #ruby-lang
GarethAdams has quit [Ping timeout: 240 seconds]
knu has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
mistym_ is now known as mistym
chouhoulis has joined #ruby-lang
GarethAdams has joined #ruby-lang
lewix has quit [Read error: Connection reset by peer]
vintik has quit [Remote host closed the connection]
lewix has joined #ruby-lang
ledestin has quit [Ping timeout: 245 seconds]
ur5us has joined #ruby-lang
willmarshall has joined #ruby-lang
dm78 has quit [Remote host closed the connection]
cored has joined #ruby-lang
AncientAmateur has joined #ruby-lang
ledestin has joined #ruby-lang
Cakey has joined #ruby-lang
chouhoulis has quit [Read error: Connection reset by peer]
pixelhandler has quit [Quit: pixelhandler]
chouhoulis has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
vintik has joined #ruby-lang
dorei has quit []
dm78 has joined #ruby-lang
symm- has quit [Ping timeout: 245 seconds]
cored has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 264 seconds]
yubrew has joined #ruby-lang
gix has joined #ruby-lang
Cakey has quit [Ping timeout: 255 seconds]
yubrew has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
MikaAK1 has joined #ruby-lang
MikaAK1 has quit [Client Quit]
dwayhs_ has joined #ruby-lang
dwayhs__ has joined #ruby-lang
x0f has quit [Ping timeout: 240 seconds]
dwayhs_ has quit [Ping timeout: 264 seconds]
x0f has joined #ruby-lang
dwayhs__ has quit [Ping timeout: 255 seconds]
MikaAK1 has joined #ruby-lang
MikaAK1 has quit [Client Quit]
djbkd has joined #ruby-lang
<nofxx> hehe, that's funny... but the best one for me is the jesus gem
<nofxx> "a interface for god to speak to the mankind"
<nofxx> (sinatra webapp for god)
Kuda has joined #ruby-lang
allomov has joined #ruby-lang
sdouglas has joined #ruby-lang
heftig has quit [Ping timeout: 264 seconds]
djbkd has quit [Ping timeout: 244 seconds]
allomov has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
djbkd has joined #ruby-lang
araujo has quit [Quit: Leaving]
heftig has joined #ruby-lang
mistym_ has joined #ruby-lang
mistym has quit [Ping timeout: 240 seconds]
Cakey has joined #ruby-lang
mistym_ is now known as mistym
btcftw21 has joined #ruby-lang
btcftw21 has quit [Remote host closed the connection]
dm78 has quit [Remote host closed the connection]
btcftw21 has joined #ruby-lang
Kuda has quit [Quit: Byebye!]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
dm78 has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
Cakey has quit [Quit: Changing server]
Cakey has joined #ruby-lang
saarinen has quit [Quit: saarinen]
btcftw21 has quit [Remote host closed the connection]
yubrew has joined #ruby-lang
btcftw21 has joined #ruby-lang
emptyflask has joined #ruby-lang
mistym has quit [Remote host closed the connection]
karamazov has joined #ruby-lang
insidious has quit []
yubrew has quit [Ping timeout: 264 seconds]
Miphix has joined #ruby-lang
ainsesi has joined #ruby-lang
MikaAK2 has quit [Quit: node-irc says goodbye]
karamazo_ has joined #ruby-lang
karamazov has quit [Ping timeout: 240 seconds]
karamazo_ is now known as karamazov
dwayhs__ has joined #ruby-lang
djbkd has joined #ruby-lang
stardiviner has quit [Read error: Connection reset by peer]
dm78 has quit []
dm78 has joined #ruby-lang
dwayhs__ has quit [Ping timeout: 245 seconds]
Xzyx987X_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
Xzyx987X has quit [Ping timeout: 264 seconds]
nofxx has quit [Remote host closed the connection]
knu has joined #ruby-lang
mistym has joined #ruby-lang
RobertBirnie has joined #ruby-lang
stardiviner has joined #ruby-lang
knu has quit [Ping timeout: 240 seconds]
skade has joined #ruby-lang
willmarshall has quit [Ping timeout: 255 seconds]
dsaint-pierre has quit [Remote host closed the connection]
dsaint-pierre has joined #ruby-lang
vick_ has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
yubrew has joined #ruby-lang
willmarshall has joined #ruby-lang
yubrew has quit [Ping timeout: 244 seconds]
emptyflask has quit [Remote host closed the connection]
<vick_> is it possible to view the source code on rubygems?
jeffs_ has joined #ruby-lang
AncientAmateur has joined #ruby-lang
saarinen has joined #ruby-lang
jeffs_ has quit [Ping timeout: 244 seconds]
dm78 has quit [Remote host closed the connection]
vintik has quit [Remote host closed the connection]
vick_ has quit [Ping timeout: 246 seconds]
dm78 has joined #ruby-lang
MikaAK1 has joined #ruby-lang
CaptainJet has quit []
mistym_ has joined #ruby-lang
dwayhs__ has joined #ruby-lang
mistym has quit [Ping timeout: 240 seconds]
dwayhs__ has quit [Ping timeout: 255 seconds]
dsaint-pierre has quit [Remote host closed the connection]
majjoha has joined #ruby-lang
heftig has quit [Quit: Quitting]
allomov has joined #ruby-lang
lewix has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
lewix has joined #ruby-lang
allomov has quit [Ping timeout: 245 seconds]
chouhoul_ has joined #ruby-lang
diegoviola has joined #ruby-lang
lewix has quit [Ping timeout: 244 seconds]
earthquake has quit [Quit: earthquake]
earthquake has joined #ruby-lang
chouhoulis has quit [Ping timeout: 240 seconds]
sdouglas has quit [Remote host closed the connection]
sdouglas_ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
sdouglas_ has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
solars has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
lsegal has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
_ht has joined #ruby-lang
jeffs_ has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
jeffs_ has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby-lang
x0f has quit [Ping timeout: 255 seconds]
sdouglas has joined #ruby-lang
x0f has joined #ruby-lang
djbkd has quit [Quit: My people need me...]
sdouglas has quit [Remote host closed the connection]
dwayhs__ has joined #ruby-lang
sdouglas_ has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.3]
mistym has joined #ruby-lang
dwayhs__ has quit [Ping timeout: 244 seconds]
willmarshall has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mndoci has joined #ruby-lang
mistym_ has quit [Ping timeout: 240 seconds]
[spoiler] has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
jaimef has quit [Ping timeout: 255 seconds]
apeiros has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
willmarshall has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
karamazo_ has joined #ruby-lang
apeiros has quit [Ping timeout: 240 seconds]
karamazov has quit [Ping timeout: 240 seconds]
alexju has quit [Remote host closed the connection]
jaimef has joined #ruby-lang
btcftw21 has quit [Remote host closed the connection]
btcftw21 has joined #ruby-lang
rahul_j has joined #ruby-lang
JohnBat26 has joined #ruby-lang
x0f has quit [Ping timeout: 245 seconds]
knu has joined #ruby-lang
yubrew has joined #ruby-lang
x0f has joined #ruby-lang
willmarshall has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yubrew has quit [Ping timeout: 245 seconds]
btcftw21 has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
btcftw21 has joined #ruby-lang
knu has quit [Ping timeout: 240 seconds]
ainsesi has quit [K-Lined]
yfeldblum has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
retro|cz has joined #ruby-lang
earthquake has quit [Quit: earthquake]
rramphal has joined #ruby-lang
rramphal has quit [Client Quit]
jeffs_ has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
[spoiler] has quit [Remote host closed the connection]
jeffs_ has quit [Ping timeout: 240 seconds]
kyb3r_ has joined #ruby-lang
krasnus has joined #ruby-lang
[spoiler] has joined #ruby-lang
<[spoiler]> I just got kicked out of a channel (on a different network) for being bi...
<[spoiler]> It felt so barbaric and medieval
mndoci has quit [Remote host closed the connection]
btcftw21 has quit [Remote host closed the connection]
btcftw21 has joined #ruby-lang
relix has joined #ruby-lang
sdouglas has joined #ruby-lang
sdouglas_ has quit [Read error: Connection reset by peer]
dm78 has quit [Remote host closed the connection]
btcftw21 has quit [Ping timeout: 244 seconds]
<pipework> [spoiler]: It sounds reasonable.
btcftw21 has joined #ruby-lang
<[spoiler]> Sure it does. :P
<pipework> Meaning, no one cares and that channel might not be the place to put your sexual preferences on display.
<[spoiler]> (It was on-topic)
ur5us has joined #ruby-lang
<krasnus> pipework: even if I say right now in this channel: "i'm gay" that's not really a reason to kick me, is it? :O
<pipework> Sure it is.
dwayhs__ has joined #ruby-lang
<pipework> Your sexuality has no bearing or value and is just noise meant as a distraction. I could see an argument for it, but I personally wouldn't kick you for it.
<pipework> I like a little offtopic in my ontopic.
<pipework> Medieval would have been killing you and burning your corpse and everything you own (animals and inanimate objects)
yfeldblum has joined #ruby-lang
vick_ has joined #ruby-lang
<krasnus> disregarding the hyperbolic language of 'medieval', it still is not really a reason to kick someone in my opinion
<[spoiler]> Woah woah. I was humorously exaggerating; calm your trousers, pipework! :)
<pipework> [spoiler]: There's no rustling in my jimmies here, just taking the opposition as a reasonable point, which I can see it being.
<pipework> krasnus: I just could see it being a good reason depending on the channel and the kinds of people who have ops and how they run that channel.
<[spoiler]> I'm not upset about it, I was just surprised. It was a crappish channel anyway.
<[spoiler]> For context: it's a RP channel, but we were casually chatting ooc
<krasnus> pipework: I can understand it being offtopic, or even detrimental to the discussion, but a warning would be more appropriate than just plain kicking
dwayhs__ has quit [Ping timeout: 264 seconds]
<vick_> Where can I find good info about ruby's private and protected methods? The internet is full of phrases like "In Ruby, you can only access private methods for your instance of object. and not for any other object instance (of class A)". What, all instances get different methods?
<krasnus> but then again: everyone 'rules' their channel as they want
<pipework> krasnus: Try making one joke about lifting and having big pythons in #python
<pipework> vick_: Google "ruby method visibility"
<krasnus> python guys are very sensitive! :P
<[spoiler]> There's a section called "Declaring Visibility"
<vick_> that's what i was reading
mistym has quit [Remote host closed the connection]
<vick_> actually
<pipework> vick_: Mind that it also recently changed in 2.1
<vick_> " If a method is private, it may be called only within the context of the calling object---it is never possible to access another object instance's private methods directly" - I think by "context" they mean that implicit 'this' propagates up the call stack? Or what?
<[spoiler]> self*
<vick_> And what are "another object's methods"? Methods are shared among objects, this is kind of the whole point?
<pipework> vick_: Methods live on classes.
<pipework> You should learn ruby's method dispatch hierarchy.
allomov has joined #ruby-lang
<[spoiler]> Er, if you have class Hokeypokey; private def magic; end; end; you won't be able to call magic on another Hokeypokey from inside another Hokeypokey object
skade has joined #ruby-lang
<[spoiler]> that sentence looks fucked up
MikaAK1 has quit [Quit: node-irc says goodbye]
<[spoiler]> I googled and it was first result
<vick_> i'll try
karamazo_ has quit [Remote host closed the connection]
<[spoiler]> and the #1s are usually the good ones
<pipework> The best resource, imo, is "Metaprogramming Ruby", but only the first half.
ur5us has quit [Remote host closed the connection]
<pipework> That's the part that talks about ruby's object model, not so much about the metaprogramming facilities themselves.
<vick_> "explicit recipient" is 'foo' in foo.bar, right?
<[spoiler]> yeah
<[spoiler]> but "self" is also explicit
<[spoiler]> (it's weird, I know)
allomov has quit [Ping timeout: 240 seconds]
<pipework> When you use self.bar you're sending a message over self's public interface.
<[spoiler]> doing `bar` and `self.bar` isn't the same
<pipework> meaning it uses public methods.
<[spoiler]> what he said ^
<[spoiler]> or she, I don't mean to be sexist
btcftw21 has quit [Remote host closed the connection]
<pipework> I am a meat popsicle.
yubrew has joined #ruby-lang
<[spoiler]> it, then?
dennus has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
<vick_> So, basically, protected methods can only be called within a definition of a class or its descendants? And private methods are called with implicit instance? Am I on the right track?
mehlah has joined #ruby-lang
<[spoiler]> Basically you can call private methods only from within that instance, and protected methods on that instance and "sibling instances"
<[spoiler]> but private methods must be called with an implicit recipient (so, with no explicit recipient, not even `self`)
yubrew has quit [Ping timeout: 264 seconds]
<[spoiler]> protected methods can be called with either, it won't matter
<vick_> Well, I don't really understand "within instance"... I am a C programmer, when I imagine "instance" I see a chunk of memory on the heap... Some examples?
ddv has quit [Changing host]
ddv has joined #ruby-lang
charliesome has joined #ruby-lang
<pipework> That's all disregarding #send as well as various forms of eval.
<pipework> vick_: You should stop thinking about memory and stack frames in ruby.
<[spoiler]> yeah, those will just confuse you. In ruby it's object, rainbows and pies
<[spoiler]> objects*
<[spoiler]> That was a joke, btw :P
saarinen has quit [Quit: saarinen]
<[spoiler]> I wish there was pies
<apeiros> vick_: "foo" <-- string instance, x = Bar.new # <-- Bar instance
<apeiros> instance in ruby is equivalent to object (or I'm not aware of a distinction at least)
allomov has joined #ruby-lang
<apeiros> and "chunk of memory" is probably not that off either. it comes with additional information about the object, like its class, frozen state etc.
<[spoiler]> apeiros, there's no distinction, everything in ruby is an object :P
<vick_> apeiros: That much is obvious, but how do I call a method "within instance"?
<apeiros> [spoiler]: incorrect, not everything is an object ;-) but everything that is an object is an instance
<apeiros> vick_: that's about the scope
<apeiros> vick_: class Foo; def bar; …code here is run "within" the object…; end; end
<[spoiler]> vick_, to put it plainly, it must be called from inside a method that's part of the class
<apeiros> x = Foo.new; x.calling_methods_from_outside_of_x
<apeiros> if you are "within an object", self is set to the object
<apeiros> *that object
<vick_> spoiler: Thanks! That's what I suspected actually...
<[spoiler]> apeiros, isn't *everything* an object? I thought it was
<vick_> It's more clear now.
<apeiros> [spoiler]: no. code is not an object. variables are not objects. blocks are not objects. methods are not objects. (you can create objects representing the latter two, though)
sdouglas has quit [Remote host closed the connection]
<[spoiler]> Hmm. Aren't methods instances of Method?
<pipework> apeiros: What's not object yet in rubby?
<apeiros> [spoiler]: only once you created one
<pipework> Globals?
<pipework> I don't know.
sdouglas has joined #ruby-lang
<apeiros> pipework: see above, I listed a couple. and yes, globals being variables are not objects.
<[spoiler]> also I'm aware variables aren't objects; but that's kind of implied
<[spoiler]> and "code" was also implied haha
<apeiros> [spoiler]: meet lisp :)
<apeiros> and similar languages
<pipework> apeiros: That seems weird to say though about methods.
<[spoiler]> Oh, never wrote a single line of lisp
AncientAmateur has quit [Remote host closed the connection]
<apeiros> code is just data there. ready for you to manipulate.
<pipework> I mean, I get it, but that one feels particularly weird.
<[spoiler]> and blocks are just procs afaik?
<pipework> [spoiler]: nope.
<apeiros> [spoiler]: with blocks too, only if you create one from it
<[spoiler]> Ah well
<apeiros> def foo; yield; end; foo { puts "Hi" } # no Proc instance ever created in this code
<[spoiler]> So, correction: almost everything is an object
<apeiros> def foo(&block); block.call; end; foo { puts "Hi" } # now you force ruby to create a Proc instance
<apeiros> [spoiler]: it is a bit of hairsplitting, though
<apeiros> and both, the proc/block and method examples are, or could be, implementation details
<apeiros> re Method objects:
<apeiros> $ ruby -e 'p ObjectSpace.each_object(Method).to_a.size'
<apeiros> 0
<apeiros> I don't think ruby starts with zero methods ;-)
AKASkip has joined #ruby-lang
sdouglas has quit [Ping timeout: 264 seconds]
arBmind has joined #ruby-lang
<[spoiler]> ah interesting
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<[spoiler]> I love finding out stuff like this :D
<[spoiler]> never a boring day with Ruby :P
ur5us has joined #ruby-lang
<apeiros> [spoiler]: as said, IMO an implementation could easily choose to back all methods with an actual Method instance. MRI just chose not to do so. I'd assume for performance/memory consumption reasons. not sure, though.
<apeiros> and it could easily choose to represent all blocks as Procs too. with blocks I'm reasonably sure it was chosen not to for performance reasons. block-only is less expensive in scenarios where they're not passed on.
adphillips has joined #ruby-lang
adphillips has quit [Remote host closed the connection]
ironhide_604 has joined #ruby-lang
vick_ has quit [Ping timeout: 246 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
allomov has quit [Remote host closed the connection]
Siyfion has joined #ruby-lang
x0f has quit [Ping timeout: 244 seconds]
<[spoiler]> apeiros, that makes sense, though (why they don't represent them as objects), but I just imagined they did, but I never bothered to check it :P
x0f has joined #ruby-lang
dm78 has joined #ruby-lang
esad has joined #ruby-lang
tjcravey has joined #ruby-lang
dwayhs__ has joined #ruby-lang
dm78 has quit [Ping timeout: 245 seconds]
allomov has joined #ruby-lang
<[spoiler]> sale
<[spoiler]> w/c
dwayhs__ has quit [Ping timeout: 240 seconds]
chris123456789 has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
yubrew has joined #ruby-lang
mikecmpbll has joined #ruby-lang
yubrew has quit [Ping timeout: 264 seconds]
|jemc| has quit [Quit: WeeChat 0.4.3]
dennus has quit []
<yorickpeterse> morning
joonty has quit [Read error: Connection reset by peer]
btiefert2 has joined #ruby-lang
joonty has joined #ruby-lang
michd is now known as MichD
knu has joined #ruby-lang
joonty has quit [Client Quit]
btiefert has quit [Ping timeout: 240 seconds]
btcftw21 has joined #ruby-lang
cnivolle has joined #ruby-lang
sdouglas has joined #ruby-lang
<[spoiler]> oy you, yorickpeterse. morning :-)
rahul_j has quit [Quit: rahul_j]
tbuehlmann has joined #ruby-lang
sdouglas has quit [Ping timeout: 264 seconds]
esad has quit [Quit: Textual IRC Client: www.textualapp.com]
knu has quit [Ping timeout: 244 seconds]
joonty has joined #ruby-lang
btcftw21 has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby-lang
x0f has quit [Ping timeout: 244 seconds]
x0f has joined #ruby-lang
sdouglas has quit [Ping timeout: 264 seconds]
<yorickpeterse> woooo, open saucing more repositories
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allomov has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
cnivolle_ has joined #ruby-lang
dm78 has joined #ruby-lang
cnivolle has quit [Ping timeout: 240 seconds]
marr has joined #ruby-lang
charliesome has quit [Ping timeout: 245 seconds]
dwayhs__ has joined #ruby-lang
rahul_j has joined #ruby-lang
dm78 has quit [Ping timeout: 244 seconds]
yubrew has joined #ruby-lang
dwayhs__ has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Ping timeout: 240 seconds]
r0bby has joined #ruby-lang
yubrew has quit [Ping timeout: 245 seconds]
Averna has quit [Quit: Leaving.]
chris123456789 has quit [Read error: Connection reset by peer]
kek has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
stamina has joined #ruby-lang
danijoo has joined #ruby-lang
allomov has joined #ruby-lang
robmiller has joined #ruby-lang
Fushi has joined #ruby-lang
lewis1711 has joined #ruby-lang
Cakey has quit [Ping timeout: 244 seconds]
r0bby has quit [Remote host closed the connection]
dennus has joined #ruby-lang
hakunin has quit [Read error: Connection reset by peer]
sdouglas has joined #ruby-lang
hakunin has joined #ruby-lang
skade has joined #ruby-lang
<matti> Yorick-san.
cnivolle_ has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
lewis1711 has left #ruby-lang ["Leaving"]
<yorickpeterse> matti-san, hai
relix has quit [Read error: Connection reset by peer]
relix_ has joined #ruby-lang
sdouglas has quit [Ping timeout: 264 seconds]
<matti> Genki?
<yorickpeterse> waaaaaaaa?
charliesome has joined #ruby-lang
<yorickpeterse> Funny, I'm actually listening to Japanese music atm
robmiller has quit [Quit: Leaving.]
yubrew has joined #ruby-lang
dm78 has joined #ruby-lang
dwayhs__ has joined #ruby-lang
yubrew has quit [Ping timeout: 245 seconds]
dm78 has quit [Ping timeout: 255 seconds]
jds has left #ruby-lang [#ruby-lang]
dwayhs__ has quit [Ping timeout: 255 seconds]
robbyoconnor has joined #ruby-lang
Xzyx987X has joined #ruby-lang
Xzyx987X_ has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby-lang
majjoha has quit [Ping timeout: 264 seconds]
<matti> Me too!
<matti> Like, every day!
* matti is a proper otaku
<yorickpeterse> heh
<yorickpeterse> https://www.youtube.com/watch?v=k4fSjdo1cKA current playlist
<yorickpeterse> Yes I code with piano music in the background
<matti> This movie is nice.
<matti> yorickpeterse: I usually code with cello + piano
<matti> <3 cello and <3 piano
<yorickpeterse> heh
<matti> I got to like Hyuriouki
<yorickpeterse> hmm
<yorickpeterse> there's also...
<matti> And there is always Kokia <3
<yorickpeterse> ooh yeah, Kokia
<yorickpeterse> it would probably help if I actually could understand Japanese
<matti> Go and study.
<matti> Like I did ;]
<matti> Learning languages is fun ;]
apeiros has quit [Remote host closed the connection]
btcftw21 has joined #ruby-lang
apeiros has joined #ruby-lang
<yorickpeterse> I tried Korean but meh effort
<yorickpeterse> I have some friends in South Korea but with a 9 hour time difference you can't really practise
kyb3r_ has quit [Read error: Connection reset by peer]
<matti> Nobody local?
knu has joined #ruby-lang
<yorickpeterse> nop
<yorickpeterse> Should probably go back to at least writing it
apeiros has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
btcftw21 has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
workmad3 has quit [Quit: Reconnecting]
workmad3 has joined #ruby-lang
workmad3 has quit [Client Quit]
workmad3 has joined #ruby-lang
yubrew has joined #ruby-lang
postmodern has quit [Quit: Leaving]
Lumio has joined #ruby-lang
yubrew has quit [Ping timeout: 245 seconds]
dm78 has joined #ruby-lang
dwayhs__ has joined #ruby-lang
dm78 has quit [Ping timeout: 244 seconds]
dwayhs__ has quit [Ping timeout: 240 seconds]
robmiller has joined #ruby-lang
yfeldblum has joined #ruby-lang
Siyfion_ has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
Siyfion has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
rahul_j has joined #ruby-lang
robmiller has quit [Ping timeout: 255 seconds]
robmiller has joined #ruby-lang
Cakey has joined #ruby-lang
Siyfion_ has quit [Remote host closed the connection]
Siyfion has joined #ruby-lang
relix_ has quit [Read error: Connection reset by peer]
relix has joined #ruby-lang
<ledestin> matti: so how did you learn it? I find it really hard.
<yorickpeterse> you just go around yelling "MOSHI MOSHI MATTI DESU" all the time
<matti> ledestin: What? Japanese?
<ledestin> matti: yes
<matti> ledestin: I taught myself a little in the past, but for circa 3 years I am attending Japanese school/classes.
<matti> ledestin: Majority of my struggle is just memorising Kanji nowadays ;]
yubrew has joined #ruby-lang
<ledestin> matti: some things are just mind blowing, I can’t fit them in my head
<yorickpeterse> ¯\_(ツ)_/ <- only thing you need to know
<ledestin> yorickpeterse: I keep seeing that, is that a smile?
chouhoul_ has quit [Remote host closed the connection]
<yorickpeterse> I believe it's the kanji for the sound "tsu" or w/e
<ledestin> I know kanas
yubrew has quit [Ping timeout: 240 seconds]
<yorickpeterse> The other thing I remember from Japan: IRISHIMAAAAAAAASSSSSS
<yorickpeterse> (ignore the broken spelling)
dwayhs__ has joined #ruby-lang
dwayhs__ has quit [Read error: Connection reset by peer]
dwayhs__ has joined #ruby-lang
Cakey has quit [Ping timeout: 240 seconds]
rahul_j has quit [Quit: rahul_j]
symm- has joined #ruby-lang
dm78 has joined #ruby-lang
dm78_ has joined #ruby-lang
dm78 has quit [Read error: Connection reset by peer]
majjoha has joined #ruby-lang
dm78_ has quit [Ping timeout: 255 seconds]
momomomomo has joined #ruby-lang
robmiller has quit [Quit: Leaving.]
x0f has quit [Ping timeout: 255 seconds]
x0f has joined #ruby-lang
karamazov has joined #ruby-lang
mconnolly has joined #ruby-lang
hauleth has joined #ruby-lang
hauleth has left #ruby-lang [#ruby-lang]
mconnolly has quit [Quit: mconnolly]
mconnolly has joined #ruby-lang
ldnunes has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
dwayhs__ has quit [Quit: Lingo - http://www.lingoirc.com]
yfeldblum has joined #ruby-lang
dennus has quit []
yfeldblum has quit [Ping timeout: 264 seconds]
kek_ has joined #ruby-lang
karamazov has joined #ruby-lang
kek has quit [Ping timeout: 264 seconds]
karamazov has quit [Remote host closed the connection]
AncientAmateur has joined #ruby-lang
ironhide_604 has quit [Ping timeout: 260 seconds]
Lumio has quit [Quit: Lumio]
jgpawletko has joined #ruby-lang
elia has joined #ruby-lang
chouhoulis has joined #ruby-lang
lewix has joined #ruby-lang
lewix has joined #ruby-lang
<yorickpeterse> ddfreyne: ping -c 100
mconnolly has quit [Ping timeout: 240 seconds]
rahul_j has joined #ruby-lang
rahul_j has quit [Client Quit]
dm78 has joined #ruby-lang
mconnolly has joined #ruby-lang
rahul_j has joined #ruby-lang
rahul_j has quit [Client Quit]
rahul_j has joined #ruby-lang
chouhoulis has quit [Ping timeout: 244 seconds]
arBmind has quit [Read error: Connection reset by peer]
esad has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
dm78 has quit [Ping timeout: 255 seconds]
dsaint-pierre has joined #ruby-lang
lewix has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 240 seconds]
x0f has quit [Ping timeout: 245 seconds]
JohnBat26 has quit [Ping timeout: 244 seconds]
vondruch has quit [Ping timeout: 244 seconds]
x0f has joined #ruby-lang
jeffs_ has joined #ruby-lang
arBmind has joined #ruby-lang
sarkyniin has joined #ruby-lang
miqui has joined #ruby-lang
cnivolle_ has joined #ruby-lang
malconis has joined #ruby-lang
cnivolle has quit [Ping timeout: 245 seconds]
jgpawletko has quit [Quit: jgpawletko]
jgpawletko has joined #ruby-lang
lewix has joined #ruby-lang
tkuchiki has joined #ruby-lang
alexju has joined #ruby-lang
symm- has quit [Ping timeout: 240 seconds]
andrewhl has joined #ruby-lang
centrx has joined #ruby-lang
kfpratt has joined #ruby-lang
yubrew has joined #ruby-lang
malconis has quit [Remote host closed the connection]
rahul_j has quit [Quit: rahul_j]
[spoiler] has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 255 seconds]
cnivolle_ has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
cnivolle has joined #ruby-lang
malconis has joined #ruby-lang
jeffs_ has quit [Read error: Connection reset by peer]
TvL2386 has joined #ruby-lang
jeffs_ has joined #ruby-lang
nathanstitt has joined #ruby-lang
dwknoxy has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
<ddfreyne> yorickpeterse: hi
<yorickpeterse> ddfreyne: is there any sort of universal way of implementing search for Nanoc websites?
<ddfreyne> yorickpeterse: No
<yorickpeterse> Github apparently uses something custom for developer.github.com
<yorickpeterse> dang
<ddfreyne> yorickpeterse: I use Elastic Search at soundcloud
<yorickpeterse> hm
chouhoulis has joined #ruby-lang
dm78 has joined #ruby-lang
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby-lang
olivier_bK has joined #ruby-lang
<olivier_bK> hy
loincloth has joined #ruby-lang
<olivier_bK> i call a methode number_ep(page) in another methode but i need to put this methode on new variable
<olivier_bK> do you know how i can do it ?
dm78 has quit [Ping timeout: 240 seconds]
<centrx> It is not clear what you mean
<centrx> Or why would you post the same syntax error
<centrx> Post actual code
ari-_-e has quit [Quit: Leaving]
araujo has joined #ruby-lang
spastorino has joined #ruby-lang
<olivier_bK> centrx, it's good now sorry
<centrx> Can you explain more about what the problem is/what you are trying to do?
elia has quit [Quit: Computer has gone to sleep.]
ecnalyr has joined #ruby-lang
bahar has quit [Changing host]
bahar has joined #ruby-lang
ecnalyr has quit [Client Quit]
Rich_Morin has quit [Quit: Rich_Morin]
rahul_j has quit [Quit: rahul_j]
kek_ has quit [Remote host closed the connection]
kek has joined #ruby-lang
jarto has joined #ruby-lang
elia has joined #ruby-lang
<olivier_bK> centrx, what i need is to attribute variable at number_ep(page) for calling it after in ImportData::run( I-WANT-To-cal-it-here, title)
<centrx> olivier_bK, It looks like you already set a variable for epNumber = number_ep(page) ?
<olivier_bK> that doesn't work
<olivier_bK> if i remove the variable i see the number of number_ep
<centrx> I am having a hard time understanding what you are looking for, but I think you may want to put these methods inside a class.
<centrx> Then ImportData::run() can be called anywhere in the class
<centrx> and you can have a method called ep_number, like def ep_number; number_ep(@page); end
<olivier_bK> it s what i do i calling ImportData in my class
<centrx> Where @page is set as an instance variable in the class, instead of passed around as a parameter
pglombardo has joined #ruby-lang
jxie has quit [Ping timeout: 255 seconds]
jxie has joined #ruby-lang
yubrew has joined #ruby-lang
lewix has quit [Quit: Leaving]
enebo has joined #ruby-lang
pglombardo has quit [Read error: Connection reset by peer]
yubrew has quit [Read error: Connection reset by peer]
yubrew_ has joined #ruby-lang
pglombardo has joined #ruby-lang
rahul_j has joined #ruby-lang
kek has quit []
kek has joined #ruby-lang
Pyrotecnix has joined #ruby-lang
Pyrotecnix has quit [Client Quit]
Pyrotecnix has joined #ruby-lang
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
cerber has quit [Quit: cerber]
AncientAmateur has quit [Remote host closed the connection]
tbuehlmann has quit [Quit: Leaving]
AncientAmateur has joined #ruby-lang
jarto has joined #ruby-lang
Lumio has joined #ruby-lang
Jules_ has joined #ruby-lang
frank_o has joined #ruby-lang
mistym has joined #ruby-lang
Jules_ has quit [Client Quit]
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
Cakey has joined #ruby-lang
Giffc has joined #ruby-lang
Giffc has left #ruby-lang [#ruby-lang]
chouhoul_ has joined #ruby-lang
emptyflask has joined #ruby-lang
JoshuaPaling has joined #ruby-lang
mistym has quit [Remote host closed the connection]
gypsydave5 has quit [Read error: Connection reset by peer]
dorei has joined #ruby-lang
chouhoulis has quit [Ping timeout: 255 seconds]
Cakey has quit [Ping timeout: 255 seconds]
CaptainJet has joined #ruby-lang
Pyrotecnix has quit [Quit: Leaving]
Pyrotecnix has joined #ruby-lang
Pyrotecnix has quit [Client Quit]
Pyrotecnix has joined #ruby-lang
dm78 has joined #ruby-lang
dm78 has quit [Ping timeout: 255 seconds]
<frank_o> You guys probably get this all the time, but how do I print Time.now as UTC+01:00?
rahul_j has quit [Quit: rahul_j]
<frank_o> I'm trying to do `sleep(Time.parse("18:00") - Time.now)` but for my own time zone.
<centrx> frank_o, Looks like you would use Time.new with a utf_offset
<frank_o> Cool!
<centrx> or set the time zone in the locale/environment so that all times are in that time zone
elia has quit [Quit: Computer has gone to sleep.]
saarinen has joined #ruby-lang
<frank_o> Tough choice :)
RobertBirnie has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
esad has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has joined #ruby-lang
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
<frank_o> centrx: not Time.now.utc_offset(1)?
<centrx> utc_offset looks like a a reader for the utc_offset, not a setter?
<frank_o> oh
elia has joined #ruby-lang
<yorickpeterse> matti: https://www.youtube.com/watch?v=o_Z4xmaesAE skip to 32:28 (can't link to it for some reason)
<yorickpeterse> matti: cry evry tiem
<frank_o> centrx: probably best i just set the time zone in the locale then like you suggested
<centrx> That will avoid writing in lots of code to adjust time zones and then encountering bugs with t
mistym has joined #ruby-lang
AKASkip has quit [Ping timeout: 244 seconds]
<frank_o> Yep
<Kero> How would ruby know what your own time zone is, if you do not tell it? But then, ruby tries to derive that from your OS/environment. so which bit of Time.parse"18:00" or Time.now is not working as expected?
<frank_o> mistym still going in and out a lot huh :)
|jemc| has joined #ruby-lang
krasnus has quit [Quit: Linkinus - http://linkinus.com]
emptyflask has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
marr has quit [Ping timeout: 264 seconds]
skade has quit [Quit: Computer has gone to sleep.]
loincloth has quit [Remote host closed the connection]
dik_dak has joined #ruby-lang
btcftw21 has joined #ruby-lang
tbuehlmann has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
loincloth has joined #ruby-lang
micalexander has quit []
btcftw21 has quit [Ping timeout: 240 seconds]
rippa has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vanderh0ff has joined #ruby-lang
K3dare has joined #ruby-lang
<matti> yorickpeterse: Lookin'
RobertBirnie has joined #ruby-lang
RobertBirnie has quit [Client Quit]
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
AKASkip has joined #ruby-lang
saarinen has quit [Quit: saarinen]
sdouglas has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #ruby-lang
elia has quit [Client Quit]
sarkyniin has quit [Quit: Quitte]
vpretzel has joined #ruby-lang
frank_o_ has joined #ruby-lang
frank_o has quit [Ping timeout: 264 seconds]
esad has joined #ruby-lang
dm78 has joined #ruby-lang
karamazov has joined #ruby-lang
MikaAK1 has joined #ruby-lang
dm78 has quit [Ping timeout: 255 seconds]
esad has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elia has joined #ruby-lang
Lumio has quit [Quit: Lumio]
jhass|off is now known as jhass
karamazov has quit [Read error: Connection reset by peer]
danijoo has quit [Read error: Connection reset by peer]
karamazov has joined #ruby-lang
pixelhandler has joined #ruby-lang
danijoo has joined #ruby-lang
skade has joined #ruby-lang
esad has joined #ruby-lang
kek_ has joined #ruby-lang
esad has quit [Client Quit]
karamazov has quit [Remote host closed the connection]
andrewhl_ has joined #ruby-lang
cnivolle_ has joined #ruby-lang
M_3212 has joined #ruby-lang
andrewhl_ has quit [Client Quit]
andrewhl has quit [Ping timeout: 240 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
M_3212 has quit [Client Quit]
dostoyevsky has joined #ruby-lang
kek has quit [Ping timeout: 264 seconds]
kek_ has quit [Ping timeout: 255 seconds]
mistym has quit [Remote host closed the connection]
cnivolle has quit [Ping timeout: 240 seconds]
<dostoyevsky> is there a way to tell ruby I want to read a file just as a binary with no character recoding? When I do File.read("file").encoding it tells me "#<Encoding:UTF-8>"
chouhoul_ has joined #ruby-lang
jxie has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 255 seconds]
frank_o_ has quit [Quit: leaving]
cnivolle_ has quit [Remote host closed the connection]
jxie has joined #ruby-lang
cnivolle has joined #ruby-lang
__butch__ has joined #ruby-lang
banister has joined #ruby-lang
yubrew_ has quit []
cnivolle has quit [Ping timeout: 240 seconds]
<Senjai> dostoyevsky: Look under External Encoding
__butch__ has quit [Client Quit]
<apeiros> dostoyevsky: File.read(path, encoding: 'binary')
<apeiros> as per IO::read's documentation
mikecmpbll has quit [Quit: i've nodded off.]
yfeldblum has joined #ruby-lang
Siyfion has quit []
mconnolly has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby-lang
rramphal has joined #ruby-lang
rramphal has quit [Client Quit]
mistym has joined #ruby-lang
M_3212 has joined #ruby-lang
pchatsu has joined #ruby-lang
M_3212 has quit [Client Quit]
cored_ has joined #ruby-lang
Miphix has quit [Quit: Leaving]
cored has quit [Ping timeout: 245 seconds]
pchatsu has quit [Remote host closed the connection]
jeffs_ has quit [Ping timeout: 244 seconds]
AKASkip has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby-lang
marr has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 264 seconds]
ecnalyr has joined #ruby-lang
djbkd has joined #ruby-lang
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
karamazov has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
dm78 has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
dm78 has quit [Ping timeout: 245 seconds]
vintik has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
jeffs_ has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
malconis has joined #ruby-lang
malconis has quit [Remote host closed the connection]
karamazov has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
chouhoul_ has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 240 seconds]
Lumio has joined #ruby-lang
mikecmpbll has joined #ruby-lang
x0f has quit [Ping timeout: 255 seconds]
x0f has joined #ruby-lang
olivier_bK has quit [Ping timeout: 244 seconds]
heftig has joined #ruby-lang
sdouglas has joined #ruby-lang
djbkd has joined #ruby-lang
chouhoulis has joined #ruby-lang
chouhoul_ has quit [Read error: Connection reset by peer]
karamazov has joined #ruby-lang
saarinen has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
AKASkip has joined #ruby-lang
ecnalyr has quit [Ping timeout: 244 seconds]
hahuang61 has joined #ruby-lang
djbkd has joined #ruby-lang
loincloth has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby-lang
charliesome has joined #ruby-lang
yfeldblum has joined #ruby-lang
saarinen has quit [Quit: saarinen]
hahuang65 has joined #ruby-lang
chouhoulis has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 245 seconds]
dc5ala has joined #ruby-lang
malconis has joined #ruby-lang
btcftw21 has joined #ruby-lang
chouhoulis has joined #ruby-lang
btiefert2 has quit [Ping timeout: 264 seconds]
diegoviola has joined #ruby-lang
hahuang65 has quit [Quit: WeeChat 0.4.3]
banister has joined #ruby-lang
hahuang65 has joined #ruby-lang
TvL2386 has quit [Remote host closed the connection]
M_3212 has joined #ruby-lang
AncientAmateur has joined #ruby-lang
dm78 has joined #ruby-lang
saarinen has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
JohnBat26 has joined #ruby-lang
btcftw21 has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
AncientAmateur has quit [Ping timeout: 255 seconds]
dm78 has quit [Ping timeout: 240 seconds]
RobertBirnie has joined #ruby-lang
vintik has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
AncientAmateur has joined #ruby-lang
emptyflask has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
ascarter has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
vintik has joined #ruby-lang
benkhicks has joined #ruby-lang
ecnalyr has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby-lang
kfpratt has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby-lang
relix has joined #ruby-lang
momomomomo has quit [Client Quit]
chris123456789 has joined #ruby-lang
chris123456789 has quit [Client Quit]
chris123456789 has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AncientAmateur has quit [Remote host closed the connection]
relix has quit [Ping timeout: 240 seconds]
emptyflask has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
momomomomo has quit [Client Quit]
symm- has joined #ruby-lang
mconnolly has joined #ruby-lang
zz_dlu has quit [Ping timeout: 244 seconds]
GaelanAintAround has quit [Ping timeout: 255 seconds]
Sonja has joined #ruby-lang
chouhoul_ has joined #ruby-lang
chouhou__ has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
stamina1 has joined #ruby-lang
<Sonja> are there any deep truths in Ruby?
relix has joined #ruby-lang
chouhoulis has quit [Ping timeout: 240 seconds]
<apeiros> a Ruby is a Ruby is a Ruby is a Ruby
<apeiros> deep enough? :)
stamina has quit [Ping timeout: 240 seconds]
chouhoul_ has quit [Ping timeout: 264 seconds]
<Sonja> yes
<Sonja> it's existential eh
emptyflask has joined #ruby-lang
sepp2k has joined #ruby-lang
<apeiros> well, technical truths: everything you call a method on is an object. almost everything is an object. there are only instance methods. the only things which can contain instance methods are modules (or classes, but since Class < Module…)
stamina2 has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
<apeiros> another truth: blocks are awesome and are a corner pillar of good ruby code and allow you to abstract many problems
zz_dlu has joined #ruby-lang
<apeiros> need more?
<Sonja> yes!
<apeiros> d'oh
<Sonja> no, this is enough
<apeiros> I'm all out of ruby truths at the moment. come back later?
<apeiros> :)
stamina1 has quit [Ping timeout: 240 seconds]
CaptainJet has quit [Read error: Connection reset by peer]
loinclot_ has joined #ruby-lang
emptyflask has quit [*.net *.split]
loinclot_ has quit [*.net *.split]
diegoviola has quit [*.net *.split]
yfeldblum has quit [*.net *.split]
mikecmpbll has quit [*.net *.split]
rippa has quit [*.net *.split]
skade has quit [*.net *.split]
vpretzel has quit [*.net *.split]
K3dare has quit [*.net *.split]
jarto has quit [*.net *.split]
Pyrotecnix has quit [*.net *.split]
dorei has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
arBmind has quit [*.net *.split]
ldnunes has quit [*.net *.split]
Xney has quit [*.net *.split]
pabs has quit [*.net *.split]
bahar has quit [*.net *.split]
hinbody has quit [*.net *.split]
toretore has quit [*.net *.split]
thoolihan has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
jtperreault has quit [*.net *.split]
aarellano has quit [*.net *.split]
mconnolly has quit [*.net *.split]
loincloth has quit [*.net *.split]
GaelanAintAround has quit [*.net *.split]
JohnBat26 has quit [*.net *.split]
AKASkip has quit [*.net *.split]
pixelhandler has quit [*.net *.split]
MikaAK1 has quit [*.net *.split]
pglombardo has quit [*.net *.split]
apeiros has quit [*.net *.split]
enebo has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
jgpawletko has quit [*.net *.split]
miqui has quit [*.net *.split]
majjoha has quit [*.net *.split]
Asher has quit [*.net *.split]
katlogic has quit [*.net *.split]
dsaint-pierre has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
aero224 has quit [*.net *.split]
DEac-_ has quit [*.net *.split]
jsullivandigs has quit [*.net *.split]
hellome has quit [*.net *.split]
Blaguvest has quit [*.net *.split]
fumduq has quit [*.net *.split]
surrounder has quit [*.net *.split]
matp has quit [*.net *.split]
skinny_much has quit [*.net *.split]
justinmcp has quit [*.net *.split]
unsymbol has quit [*.net *.split]
cid404 has quit [*.net *.split]
[dmp] has quit [*.net *.split]
junkmechanic has quit [*.net *.split]
joevandyk has quit [*.net *.split]
blowmage has quit [*.net *.split]
Authenticator has quit [*.net *.split]
mahlon has quit [*.net *.split]
webhat has quit [*.net *.split]
sdouglas has quit [*.net *.split]
heftig has quit [*.net *.split]
vintik has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
bryanl has quit [*.net *.split]
tjcravey has quit [*.net *.split]
pipework has quit [*.net *.split]
rickruby has quit [*.net *.split]
adambeynon has quit [*.net *.split]
melter has quit [*.net *.split]
paulog has quit [*.net *.split]
JoL1hAHN has quit [*.net *.split]
chancancode has quit [*.net *.split]
msch has quit [*.net *.split]
jlpeters has quit [*.net *.split]
go|dfish has quit [*.net *.split]
sindork_ has quit [*.net *.split]
catepillar has quit [*.net *.split]
soraher has quit [*.net *.split]
wnd has quit [*.net *.split]
Macacity has quit [*.net *.split]
manveru has quit [*.net *.split]
Sigma00 has quit [*.net *.split]
styped_____ has quit [*.net *.split]
cyndis has quit [*.net *.split]
seanhagen has quit [*.net *.split]
rtlong has quit [*.net *.split]
joelmheim has quit [*.net *.split]
jayne has quit [*.net *.split]
moogumbo has quit [*.net *.split]
justinweiss has quit [*.net *.split]
levifig has quit [*.net *.split]
concernedcitizen has quit [*.net *.split]
bnagy has quit [*.net *.split]
neurodamage has quit [*.net *.split]
tbuehlmann has quit [Remote host closed the connection]
loinclot_ has joined #ruby-lang
jarto has joined #ruby-lang
vpretzel has joined #ruby-lang
K3dare has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
katlogic has joined #ruby-lang
AKASkip has joined #ruby-lang
Xney has joined #ruby-lang
vintik has joined #ruby-lang
pixelhandler has joined #ruby-lang
jgpawletko has joined #ruby-lang
mconnolly has joined #ruby-lang
toretore has joined #ruby-lang
heftig has joined #ruby-lang
majjoha has joined #ruby-lang
robbyoconnor has joined #ruby-lang
DEac-_ has joined #ruby-lang
diegoviola has joined #ruby-lang
cid404 has joined #ruby-lang
hellome has joined #ruby-lang
yfeldblum has joined #ruby-lang
Blaguvest has joined #ruby-lang
enebo has joined #ruby-lang
fumduq has joined #ruby-lang
pabs has joined #ruby-lang
JoL1hAHN has joined #ruby-lang
dorei has joined #ruby-lang
tjcravey has joined #ruby-lang
hinbody has joined #ruby-lang
chancancode has joined #ruby-lang
mikecmpbll has joined #ruby-lang
emptyflask has joined #ruby-lang
rippa has joined #ruby-lang
tkuchiki has joined #ruby-lang
loincloth has joined #ruby-lang
justinmcp has joined #ruby-lang
surrounder has joined #ruby-lang
bryanl has joined #ruby-lang
adambeynon has joined #ruby-lang
go|dfish has joined #ruby-lang
paulog has joined #ruby-lang
skinny_much has joined #ruby-lang
Authenticator has joined #ruby-lang
[dmp] has joined #ruby-lang
jsullivandigs has joined #ruby-lang
jayne has joined #ruby-lang
miqui has joined #ruby-lang
michael_mbp has joined #ruby-lang
levifig has joined #ruby-lang
melter has joined #ruby-lang
jtperreault has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
catepillar has joined #ruby-lang
skade has joined #ruby-lang
bahar has joined #ruby-lang
pipework has joined #ruby-lang
Pyrotecnix has joined #ruby-lang
concernedcitizen has joined #ruby-lang
webhat has joined #ruby-lang
mahlon has joined #ruby-lang
junkmechanic has joined #ruby-lang
sdouglas has joined #ruby-lang
MikaAK1 has joined #ruby-lang
rtlong has joined #ruby-lang
wnd has joined #ruby-lang
cyndis has joined #ruby-lang
aarellano has joined #ruby-lang
justinweiss has joined #ruby-lang
ldnunes has joined #ruby-lang
styped_____ has joined #ruby-lang
jlpeters has joined #ruby-lang
seanhagen has joined #ruby-lang
Sigma00 has joined #ruby-lang
moogumbo has joined #ruby-lang
pglombardo has joined #ruby-lang
arBmind has joined #ruby-lang
JohnBat26 has joined #ruby-lang
sindork_ has joined #ruby-lang
Kuukunen has joined #ruby-lang
manveru has joined #ruby-lang
soraher has joined #ruby-lang
dsaint-pierre has joined #ruby-lang
Asher has joined #ruby-lang
unsymbol has joined #ruby-lang
blowmage has joined #ruby-lang
aero224 has joined #ruby-lang
Macacity has joined #ruby-lang
joevandyk has joined #ruby-lang
neurodamage has joined #ruby-lang
joelmheim has joined #ruby-lang
msch has joined #ruby-lang
bnagy has joined #ruby-lang
apeiros has joined #ruby-lang
matp has joined #ruby-lang
thoolihan has joined #ruby-lang
rickruby has joined #ruby-lang
hellome has quit [Max SendQ exceeded]
loincloth has quit [Ping timeout: 240 seconds]
chris123456789 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CaptainJet has joined #ruby-lang
robbyoconnor has quit [Max SendQ exceeded]
Blaguvest has quit [Max SendQ exceeded]
Olipro has quit [Max SendQ exceeded]
crankharder has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
shaman42 has quit [*.net *.split]
oddmunds has quit [*.net *.split]
TTilus has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
flori has quit [*.net *.split]
Bwild has quit [*.net *.split]
machuga has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
masscrx has quit [*.net *.split]
PaulePanter has joined #ruby-lang
TTilus has joined #ruby-lang
tommylommykins has joined #ruby-lang
flori has joined #ruby-lang
masscrx has joined #ruby-lang
crankharder has joined #ruby-lang
oddmunds has joined #ruby-lang
Bwild has joined #ruby-lang
workmad3 has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
chris123456789 has joined #ruby-lang
btcftw21 has joined #ruby-lang
majjoha has quit [Ping timeout: 240 seconds]
chris123456789 has quit [Max SendQ exceeded]
sdouglas has quit [Ping timeout: 264 seconds]
mikecmpb_ has joined #ruby-lang
majjoha has joined #ruby-lang
Fushi has quit [Quit: Connection closed for inactivity]
thmzlt has joined #ruby-lang
hinbody_ has joined #ruby-lang
pabs_ has joined #ruby-lang
machuga has joined #ruby-lang
Pyrotecnix_ has joined #ruby-lang
shaman42 has joined #ruby-lang
sdouglas has joined #ruby-lang
CaptainJet has quit [Ping timeout: 240 seconds]
bantic has joined #ruby-lang
charliesome has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby-lang
chouhou__ has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
loinclot_ has quit [*.net *.split]
emptyflask has quit [*.net *.split]
yfeldblum has quit [*.net *.split]
mikecmpbll has quit [*.net *.split]
diegoviola has quit [*.net *.split]
skade has quit [*.net *.split]
vpretzel has quit [*.net *.split]
K3dare has quit [*.net *.split]
rippa has quit [*.net *.split]
Pyrotecnix has quit [*.net *.split]
dorei has quit [*.net *.split]
jarto has quit [*.net *.split]
arBmind has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
ldnunes has quit [*.net *.split]
Xney has quit [*.net *.split]
pabs has quit [*.net *.split]
hinbody has quit [*.net *.split]
bahar has quit [*.net *.split]
toretore has quit [*.net *.split]
jtperreault has quit [*.net *.split]
thoolihan has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
aarellano has quit [*.net *.split]
mconnolly has quit [Quit: mconnolly]
Olipro has joined #ruby-lang
ldnunes has joined #ruby-lang
dm78 has joined #ruby-lang
postmodern has joined #ruby-lang
dwknoxy is now known as dknox-lunch
dm78 has quit [Ping timeout: 245 seconds]
mikecmpb_ has quit [Quit: i've nodded off.]
kfpratt has joined #ruby-lang
mikecmpbll has joined #ruby-lang
diegoviola has joined #ruby-lang
mconnolly has joined #ruby-lang
momomomomo has joined #ruby-lang
<epitron> ruby's message-passing based object protocol model is one of the core principles of what makes ruby (and smalltalk) nice
<epitron> in other words, objects are just like machines on a network that send each other messages to do things
karamazov has quit [Remote host closed the connection]
<epitron> which lets the objects do neat things, like interpret the message however it feels like (it doesn't need a method to exist)
<epitron> (well, it needs a method that handles a number of different messages :)
<epitron> it's a little bit different from other OOP languages, where all the messages you want to send an object must be known at compile time
<epitron> and you have to actually know where that object's method lives in memory
btcftw21 has quit [Remote host closed the connection]
mconnolly has quit [Quit: mconnolly]
<epitron> message passing is also known as http://en.wikipedia.org/wiki/Late_binding
btcftw21 has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
loinclot_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
vpretzel has joined #ruby-lang
K3dare has joined #ruby-lang
aarellano has joined #ruby-lang
dorei has joined #ruby-lang
jtperreault has joined #ruby-lang
tkuchiki has joined #ruby-lang
bahar has joined #ruby-lang
thoolihan has joined #ruby-lang
jarto has joined #ruby-lang
rippa has joined #ruby-lang
Xney has joined #ruby-lang
toretore has joined #ruby-lang
michael_mbp has joined #ruby-lang
loinclot_ has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elia has joined #ruby-lang
<epitron> Sonja: -^
mconnolly has joined #ruby-lang
orange-tiger has joined #ruby-lang
<orange-tiger> Can somebody explain this?
djbkd has quit [Remote host closed the connection]
<orange-tiger> >> Date.parse('6/11/14')
<eval-in> orange-tiger => undefined method `parse' for Date:Class (NoMethodError) ... (https://eval.in/167314)
chouhoulis has quit [Remote host closed the connection]
<orange-tiger> nvm
orange-tiger has quit [Client Quit]
chouhoulis has joined #ruby-lang
* epitron adds 1 to the "Problems Solved" scoreboard
AncientAmateur has joined #ruby-lang
mconnolly has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
pglombardo has quit []
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
arBmind has joined #ruby-lang
Asher has quit [Quit: Leaving.]
Asher has joined #ruby-lang
skade has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
_ht has quit [Remote host closed the connection]
M_3212 has quit [Quit: Leaving]
yubrew has quit []
sdouglas has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
mistym_ has joined #ruby-lang
mistym_ has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
mistym has quit [Ping timeout: 245 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has joined #ruby-lang
majjoha has quit [Ping timeout: 240 seconds]
dknox-lunch is now known as dknox
mconnolly has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
dm78 has joined #ruby-lang
centrx has joined #ruby-lang
mistym has joined #ruby-lang
djbkd has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
dm78 has quit [Ping timeout: 248 seconds]
hinbody_ is now known as hinbody
elia has joined #ruby-lang
MikaAK1 has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
elia has quit [Client Quit]
charliesome has joined #ruby-lang
cnivolle has joined #ruby-lang
ledestin has quit [Ping timeout: 245 seconds]
banister has joined #ruby-lang
elia has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Sonja has quit [Ping timeout: 240 seconds]
mconnolly has quit [Quit: mconnolly]
emptyflask has joined #ruby-lang
emptyflask has quit [Remote host closed the connection]
banister has joined #ruby-lang
banister has quit [Client Quit]
jhass is now known as jhass|off
stamina2 has quit [Quit: WeeChat 0.4.3]
sdouglas has joined #ruby-lang
Lumio has quit [Quit: Lumio]
ledestin has joined #ruby-lang
emptyflask has joined #ruby-lang
emptyflask has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby-lang
saarinen has joined #ruby-lang
yfeldblum has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
Lumio has joined #ruby-lang
djbkd has joined #ruby-lang
saarinen has quit [Quit: saarinen]
vanderh0ff has quit [Read error: Connection reset by peer]
h0ff has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ruby-lang872 has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
karamazov has joined #ruby-lang
ur5us has joined #ruby-lang
djbkd has joined #ruby-lang
btiefert has joined #ruby-lang
ruby-lang872 has quit [Quit: Page closed]
banister has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
dm78 has joined #ruby-lang
mistym has joined #ruby-lang
sdouglas has joined #ruby-lang
mistym has quit [Remote host closed the connection]
karamazov has quit [Remote host closed the connection]
mistym has joined #ruby-lang
dm78 has quit [Ping timeout: 264 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
loincloth has joined #ruby-lang
momomomomo has joined #ruby-lang
yalue has quit [Quit: Leaving]
btcftw21 has quit [Remote host closed the connection]
btcftw21 has joined #ruby-lang
btcftw21 has quit [Read error: Connection reset by peer]
elia has joined #ruby-lang
elia has quit [Client Quit]
karamazov has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
saarinen has joined #ruby-lang
karamazov has quit [Client Quit]
saarinen has quit [Client Quit]
elia has joined #ruby-lang
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
MikaAK1 has joined #ruby-lang
mconnolly has joined #ruby-lang
mconnolly has quit [Client Quit]
darix has quit [Quit: may the packets be with you...]
mconnolly has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
charliesome has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
mconnolly has quit [Quit: mconnolly]
djbkd has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
saarinen has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
jgpawletko has quit [Quit: jgpawletko]
Pyrotecnix_ is now known as Pyrotecnix
darix has joined #ruby-lang
Pyrotecnix is now known as Pyrotecnix-Away
nathanstitt has quit [Quit: I growing sleepy]
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
darix has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
darix has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
saarinen has joined #ruby-lang
dm78 has joined #ruby-lang
yfeldblum has joined #ruby-lang
dm78 has quit [Ping timeout: 264 seconds]
Blaguvest has joined #ruby-lang
btcftw21 has joined #ruby-lang
relix has joined #ruby-lang
t_ has joined #ruby-lang
rixius has joined #ruby-lang
retro|cz has quit [Ping timeout: 245 seconds]
rixius has quit [Quit: Lost terminal]
Lumio has quit [Quit: Lumio]
btcftw21 has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
cnivolle has quit [Read error: Connection reset by peer]
cnivolle has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
<diegoviola> why will #map show me the actual output and #each won't?
<ericwood> diegoviola: each isn't for outputting things
<ericwood> it's for iteration and that's it
<diegoviola> i see, ty
<ericwood> p
bantic has quit [Quit: bantic]
mehlah has joined #ruby-lang
saarinen has quit [Quit: saarinen]
AncientAmateur has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
saarinen has joined #ruby-lang
nofxx has quit [Ping timeout: 245 seconds]
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
saarinen has quit [Client Quit]
workmad3 has joined #ruby-lang
MichD is now known as michd
danijoo has quit [Read error: Connection reset by peer]
saarinen has joined #ruby-lang
danijoo has joined #ruby-lang
jeffs_ has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
insidiou_ has joined #ruby-lang
insidiou_ has quit [Client Quit]
cnivolle has quit [Read error: Connection reset by peer]
cnivolle has joined #ruby-lang
jsaak has quit [Ping timeout: 252 seconds]
saarinen has quit [Quit: saarinen]
AncientAmateur has joined #ruby-lang
benkhicks has quit [Quit: Leaving.]
dik_dak has quit [Quit: Leaving]
saarinen has joined #ruby-lang
<diegoviola> i have an array like this: ["410", "1704", "1", "1", "N", "17", "TIPO V", "APARTAMENTO 1 QUARTO", "N", "124.43", "219.73", "6", " ", "5"] -- how do i reduce it to only have one element or two
dm78 has joined #ruby-lang
<diegoviola> actually, i'm doing this to get the array back: dados_gar.map! {|x| x.split("|") }
symm- has quit [Ping timeout: 240 seconds]
<diegoviola> the original data is like this: "410|804|115|1|0|"
jsaak has joined #ruby-lang
<diegoviola> but i don't want all the data, just some elements into the array
<diegoviola> actually, more like this: "410|1701|1|1|S|17|TIPO IV|APARTAMENTO 1 QUARTO|N|125.33|221|40| |5|"
Sonja has joined #ruby-lang
<diegoviola> any ideas please?
symm- has joined #ruby-lang
saarinen has quit [Client Quit]
<mistym> diegoviola: What's your criteria for including elements?
dm78 has quit [Ping timeout: 252 seconds]
<diegoviola> mistym: well, those two arrays i'm getting are diffeent data, the only data in common is the IDs, but they are arrays and they don't have keys and such, so I just want to pick one or two elements from each array and combine them by the ID, then put the data into a hash with keys
<diegoviola> mistym: but my first problem is actually picking the data i want from each array
<diegoviola> mistym: the criteria, i don't know, i just want to pick one of the columns, i know what each data is, i just don't know how to refer to them, this is what the data looks like: https://gist.github.com/diegoviola/b0fae0e212b2d1613321
dhruvasagar has quit [Ping timeout: 240 seconds]
ToaNii has quit [Ping timeout: 240 seconds]
<dorei> use ranges in the array #[] ?
<diegoviola> dados_gar.map {|x| x.split("|")[0..1] <-- i wonder if i could say something like this
<diegoviola> but i'm not sure
segy has quit [Ping timeout: 240 seconds]
<diegoviola> is there a better way?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
segy has joined #ruby-lang
Senjai has quit [Ping timeout: 240 seconds]
<dorei> maybe a regex?
<diegoviola> the data will change eventually so i'm not sure a regex would work
Senjai has joined #ruby-lang
dhruvasagar has joined #ruby-lang
Senjai has quit [Changing host]
Senjai has joined #ruby-lang
Lumio has joined #ruby-lang
Lumio has quit [Client Quit]
enebo has quit [Quit: enebo]
retro|cz has joined #ruby-lang
Lumio has joined #ruby-lang
Lumio has quit [Client Quit]
yfeldblum has joined #ruby-lang
saarinen has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
AncientAmateur has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
djbkd has joined #ruby-lang
AncientAmateur has joined #ruby-lang
ToaNii has joined #ruby-lang
AncientAmateur has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
houhoulis has joined #ruby-lang
mikecmpbll has quit [Quit: ciao.]
lewix has joined #ruby-lang
<lewix> hi guys
dknox has quit [Quit: Textual IRC Client: www.textualapp.com]
|jemc| has quit [Ping timeout: 240 seconds]
AKASkip has quit [Ping timeout: 240 seconds]
jsaak has quit [Ping timeout: 260 seconds]
mehlah has quit [Quit: Leaving...]
workmad3 has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby-lang
emptyflask has joined #ruby-lang
jsaak has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
AncientAmateur has joined #ruby-lang