baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
<banisterfiend> otherwise you gotta look at the method body to konw there's a block bring passed which can be missed easily enough
<dminuoso> ^- +1
<banisterfiend> being*
n0m4d1c has quit [Ping timeout: 256 seconds]
<dminuoso> And at that time you might as well call the block directly to make code flow easier to follow. :)
<dminuoso> The performance benfit only seems to apply to stdlib writers I think.
nowhere_man has joined #ruby
<dminuoso> banisterfiend: o/ by the way.
nowhereman_ has quit [Ping timeout: 248 seconds]
<banisterfiend> sup
<dminuoso> banisterfiend: How do I debug pry doing not the right thing spontaneously?
<banisterfiend> dminuoso what do you mean? what happened?
xelkarin has quit [Quit: WeeChat 1.9.1]
<iceskins[m]> `foo is aliased as bar` `foo has an alias of bar` `bar is aliased as foo`
<cagomez> sounds reasonable
<iceskins[m]> Sorry `bar is aliased to foo`
m27frogy has quit [Read error: Connection reset by peer]
<dminuoso> banisterfiend: Well, I rather frequently manage to break the pager so badly..
<banisterfiend> lol how does it break? any screenshot?
<dminuoso> None at hand, but usually printing imperial shittons of things in Rails seems to frequently screw up the prompt permanently
jenrzzz has joined #ruby
<craysiii> switch to metric :P
<banisterfiend> dminuoso hmm, weird, maybe try 'tty sane'
<banisterfiend> err, stty sane
jenrzzz_ has quit [Ping timeout: 248 seconds]
<dminuoso> banisterfiend: Mm fair enough Ill keep it in mind
<banisterfiend> dminuoso i guess some control chars are affecting the tty
<banisterfiend> or the pager is somehow breaking it
alfiemax has joined #ruby
<banisterfiend> never excperiencd it before :)
cagomez has quit [Remote host closed the connection]
<dminuoso> Well lets just say I have some bad habits that result in me always forgetting the trailing `;`
<banisterfiend> heh
<banisterfiend> are you the guy i spoke to the other night about that new pry-doc feature?
<banisterfiend> bad memory sorry
<dminuoso> nope
<banisterfiend> ah ok
<dminuoso> unless mine is as bad as yours
<dminuoso> ;p
<banisterfiend> lol
<banisterfiend> doubt it, i was a stoner in college
<dminuoso> Whatever the feature is, I upvote it.
<dminuoso> Sounds good.
<banisterfiend> what featuer?
<dminuoso> Well that new pry-doc feature.
<banisterfiend> the one you know nothing about? :P
<dminuoso> Yes.
<banisterfiend> heh weirdo
jenrzzz_ has joined #ruby
cagomez has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
bigblind has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
n0m4d1c has joined #ruby
schneide_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
arescorpio has joined #ruby
karapetyan has joined #ruby
schneide_ has quit [Ping timeout: 268 seconds]
shinnya has quit [Ping timeout: 265 seconds]
Gnut has quit [Ping timeout: 268 seconds]
karapetyan has quit [Remote host closed the connection]
gary_ has joined #ruby
gary_ is now known as Guest22974
alfiemax has joined #ruby
Guest22974 has quit [Ping timeout: 276 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
jcarl43 has joined #ruby
dskon has quit [Read error: Connection reset by peer]
dskon has joined #ruby
beauby has joined #ruby
alfiemax has joined #ruby
hndk has joined #ruby
RougeR has quit [Ping timeout: 248 seconds]
ghormoon has joined #ruby
gary__ has joined #ruby
beauby has quit [Ping timeout: 268 seconds]
alfiemax has quit [Ping timeout: 256 seconds]
desperek has quit [Quit: xoxo]
gary__ has quit [Ping timeout: 268 seconds]
bmurt has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
bmurt has quit [Client Quit]
chocoelho has quit [Ping timeout: 265 seconds]
randyn has quit [Quit: leaving]
kapil___ has joined #ruby
RougeR has joined #ruby
gary has joined #ruby
gary is now known as Guest71625
cagomez has quit [Remote host closed the connection]
workmad3 has joined #ruby
Guest71625 has quit [Ping timeout: 256 seconds]
hoylemd has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 248 seconds]
sumobob has quit [Ping timeout: 256 seconds]
marr has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
leitz has quit [Quit: Nappy time]
quobo has quit [Quit: Connection closed for inactivity]
alfiemax has quit [Ping timeout: 256 seconds]
bijan_ has quit [Quit: System has gone to sleep. ZZZzzz…]
chocoelho has joined #ruby
elcontrastador has quit [Ping timeout: 240 seconds]
ghormoon has quit [Ping timeout: 256 seconds]
nadir has quit [Quit: Connection closed for inactivity]
chocoelho has quit [Client Quit]
RougeR has quit [Ping timeout: 256 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gary_ has joined #ruby
gary_ is now known as Guest83966
ghormoon has joined #ruby
Guest83966 has quit [Ping timeout: 260 seconds]
n0m4d1c has quit [Remote host closed the connection]
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
jcarl43 has quit [Quit: WeeChat 2.0.1]
minimalism has quit [Quit: minimalism]
RougeR has quit [Ping timeout: 240 seconds]
gary has joined #ruby
alfiemax has joined #ruby
gary is now known as Guest38124
John_Ivan has quit [Ping timeout: 248 seconds]
m27frogy has joined #ruby
snath has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
Guest38124 has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
n0m4d1c has joined #ruby
n0m4d1c has quit [Read error: Connection reset by peer]
n0m4d1c_ has joined #ruby
gary_ has joined #ruby
gary_ is now known as Guest55513
RougeR has joined #ruby
Guest55513 has quit [Ping timeout: 256 seconds]
gary__ has joined #ruby
hndk has quit [Quit: Leaving]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gary__ has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
drewmcmillan has joined #ruby
char_var[buffer] has joined #ruby
NsOmNiAc has quit [Quit: Leaving]
alfiemax has quit [Ping timeout: 264 seconds]
govg has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
bigblind has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
gary__ has joined #ruby
jenrzzz_ has quit [Ping timeout: 248 seconds]
n0m4d1c_ has quit [Remote host closed the connection]
RougeR has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
alfiemax has joined #ruby
kies has quit [Ping timeout: 252 seconds]
gary__ has quit [Ping timeout: 264 seconds]
gary__ has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 256 seconds]
gary__ has quit [Ping timeout: 240 seconds]
beauby has joined #ruby
locsmif has quit [Quit: leaving]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
gary__ has joined #ruby
beauby has quit [Ping timeout: 248 seconds]
arescorpio has quit [Excess Flood]
gary__ has quit [Ping timeout: 256 seconds]
gary has joined #ruby
gary is now known as Guest1914
Rodya_ has joined #ruby
auv has joined #ruby
ferox has quit [Remote host closed the connection]
workmad3 has joined #ruby
apricant_ has joined #ruby
bigblind has joined #ruby
drewmcmillan has joined #ruby
Guest1914 has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
gary_ has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
gary_ is now known as Guest30192
houhoulis has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 256 seconds]
hlmjr has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
bigblind has quit [Ping timeout: 256 seconds]
electrostat has quit [Quit: uwotm8]
kies has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wilbert has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
Asher has quit [Ping timeout: 240 seconds]
bigblind has joined #ruby
Asher has joined #ruby
alfiemax has joined #ruby
morenoh149 has quit [Ping timeout: 265 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
bigblind has quit [Ping timeout: 256 seconds]
morenoh149 has joined #ruby
ecuanaso has joined #ruby
Asher has quit [Client Quit]
ramfjord has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
hlmjr has quit [Quit: Konversation terminated!]
darkhanb has joined #ruby
Asher has joined #ruby
morenoh149 has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
elcontrastador has joined #ruby
DTZUZO has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
govg has joined #ruby
Rodya_ has joined #ruby
skweek has joined #ruby
alfiemax has quit [Ping timeout: 268 seconds]
Rodya_ has quit [Remote host closed the connection]
c0ncealed has quit [Remote host closed the connection]
c0ncealed has joined #ruby
alfiemax has joined #ruby
kies has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
alfiemax has quit [Ping timeout: 256 seconds]
regedit has quit [Quit: Connection closed for inactivity]
bigblind has joined #ruby
hndk has joined #ruby
fyrril has quit [Quit: Leaving]
morenoh149 has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
alfiemax has joined #ruby
morenoh149 has quit [Ping timeout: 268 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
raynold has quit [Quit: Connection closed for inactivity]
trautwein has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
alfiemax has joined #ruby
morenoh149 has joined #ruby
Exuma has joined #ruby
kapil___ has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
beauby has joined #ruby
Guest30192 has quit [Ping timeout: 260 seconds]
beauby has quit [Ping timeout: 256 seconds]
apricant_ has quit [Ping timeout: 264 seconds]
AJA4350 has quit [Quit: AJA4350]
skweek has quit [Quit: Leaving]
rexan has joined #ruby
rexan has quit [Remote host closed the connection]
rexan has joined #ruby
orbyt_ has joined #ruby
morenoh149 has quit [Ping timeout: 264 seconds]
nadir has joined #ruby
gary has joined #ruby
gary is now known as Guest64557
alfiemax has joined #ruby
workmad3 has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
shakes has joined #ruby
shakes has quit [Client Quit]
alfiemax has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
rexan has quit [Read error: Connection reset by peer]
MyMind has joined #ruby
Sembei has quit [Ping timeout: 248 seconds]
Guest64557 has quit [Ping timeout: 260 seconds]
gary_ has joined #ruby
gary_ is now known as Guest77814
alfiemax has joined #ruby
morenoh149 has joined #ruby
PaulCapestany has quit [Ping timeout: 256 seconds]
kies has joined #ruby
PaulCapestany has joined #ruby
bigblind has quit [Ping timeout: 260 seconds]
hndk has quit [Quit: Leaving]
GinoMan has joined #ruby
morenoh149 has quit [Ping timeout: 248 seconds]
beauby has joined #ruby
mtkd has joined #ruby
beauby has quit [Ping timeout: 248 seconds]
whipperSnapper has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SuperLag has quit [Quit: reboot]
kies has quit [Ping timeout: 276 seconds]
kies has joined #ruby
alfiemax has quit [Remote host closed the connection]
Matthew1 has joined #ruby
troys has quit [Quit: Bye]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kies has quit [Ping timeout: 264 seconds]
bigblind has joined #ruby
hndk has joined #ruby
schneide_ has joined #ruby
anisha has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
morenoh149 has joined #ruby
schneide_ has quit [Ping timeout: 276 seconds]
Guest77814 has quit [Ping timeout: 276 seconds]
gary has joined #ruby
gary is now known as Guest59229
morenoh149 has quit [Ping timeout: 248 seconds]
rabajaj has joined #ruby
ptx0 has quit [Quit: leaving]
ptx0 has joined #ruby
raynold has joined #ruby
LocaMocha has joined #ruby
cadillac_ has quit [Ping timeout: 264 seconds]
cadillac_ has joined #ruby
sundhell_away is now known as sundhell
hndk has quit [Quit: Leaving]
Pisuke has joined #ruby
MyMind has quit [Ping timeout: 276 seconds]
voxxit has quit [Ping timeout: 248 seconds]
nfsnobody has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
nfsnobody has joined #ruby
voxxit has joined #ruby
ta_ has quit [Remote host closed the connection]
howdoi has joined #ruby
Guest16299 has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
mrBen2k2k2k_____ has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
morenoh149 has joined #ruby
mtkd has quit []
morenoh149 has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
morenoh149 has joined #ruby
conta has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bigblind has quit [Ping timeout: 240 seconds]
mtkd has quit []
roshanavand has joined #ruby
wilbert has quit [Ping timeout: 256 seconds]
mtkd has joined #ruby
Rodya_ has left #ruby ["Leaving..."]
morenoh149 has quit [Ping timeout: 276 seconds]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
guardianx has joined #ruby
Dimik has joined #ruby
andikr has joined #ruby
minimalism has joined #ruby
eckhardt has joined #ruby
mrBen2k2k2k_____ has quit [Ping timeout: 256 seconds]
apeiros has joined #ruby
Cope has joined #ruby
xfbs has joined #ruby
<Cope> Hi... I've not done any Ruby for 2.5+ yrs; new mac; new job: are chruby, ruby-install, rbenv etc still things? What's the current recommended way to install and manage Rubies on a mac?
ta_ has joined #ruby
Exuma has joined #ruby
Exuma has quit [Client Quit]
amatas has joined #ruby
<dminuoso> Cope: ruby-install/chruby
n008f4g_ has joined #ruby
<dminuoso> Cope: You can skip the latter if you dont need multiple versions.
<dminuoso> But you can also build it from source yourself, there's really not much to it.
GinoMan has quit [Ping timeout: 260 seconds]
<dminuoso> Cope: Though since high sierra you get a relatively new and recent version of Ruby that is fine.
<dminuoso> So you dont have to if you dont want to.
<dminuoso> It's some 2.3 version I think
kies has joined #ruby
<dminuoso> Though keep in mind that 2.4 introduced API breaking changes for basically every native extension out there.
TomyWork has joined #ruby
<dminuoso> So that's a good reaason to not stick with the macOS supplied Ruby.
bigblind has joined #ruby
<Cope> yep the stuff I'm working on is 2.4
guardianx has quit []
<Cope> ok great, thanks dminuoso
kapil___ has quit [Quit: Connection closed for inactivity]
kapil___ has joined #ruby
bigblind has quit [Ping timeout: 260 seconds]
morenoh149 has joined #ruby
yohji has joined #ruby
jnyw has joined #ruby
Guest59229 has quit [Ping timeout: 240 seconds]
schneide_ has joined #ruby
morenoh149 has quit [Ping timeout: 260 seconds]
sundhell is now known as sundhell_away
ramfjord has quit [Ping timeout: 248 seconds]
claudiuinberlin has joined #ruby
phenom has quit [Ping timeout: 265 seconds]
gary has joined #ruby
gary is now known as Guest46810
phenom has joined #ruby
milardovich has quit [Remote host closed the connection]
__semper__ has joined #ruby
aufi has joined #ruby
milardovich has joined #ruby
char_var[buffer] has quit [Ping timeout: 268 seconds]
aupadhye has joined #ruby
aufi_ has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 260 seconds]
Guest46810 has quit [Ping timeout: 248 seconds]
aufi has quit [Ping timeout: 256 seconds]
gary_ has joined #ruby
gary_ is now known as Guest65136
arne_ is now known as Bish
clemens3 has joined #ruby
tvw has joined #ruby
maum has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 248 seconds]
mtkd has quit []
Guest65136 has quit [Ping timeout: 256 seconds]
gary__ has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
Gnut has joined #ruby
mtkd has joined #ruby
whipperSnapper has left #ruby [#ruby]
bigblind has joined #ruby
gary__ has quit [Ping timeout: 260 seconds]
Gnut has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
gary has joined #ruby
gary is now known as Guest18173
ecuanaso has joined #ruby
reber has joined #ruby
jnollette has quit [Remote host closed the connection]
jnollette has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
morenoh149 has joined #ruby
meinside has joined #ruby
morenoh149 has quit [Ping timeout: 256 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maufart__ has joined #ruby
milardovich has quit [Remote host closed the connection]
Guest18173 has quit [Ping timeout: 256 seconds]
gary_ has joined #ruby
gary_ is now known as Guest83385
aufi_ has quit [Ping timeout: 240 seconds]
marr has joined #ruby
beauby has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
dvdingus has joined #ruby
alex`` has joined #ruby
milardovich has joined #ruby
rgr has joined #ruby
dionysus69 has joined #ruby
milardovich has quit [Ping timeout: 256 seconds]
Guest83385 has quit [Ping timeout: 240 seconds]
gary__ has joined #ruby
Mike11 has joined #ruby
guille-moe has joined #ruby
alfiemax has quit [Remote host closed the connection]
aufi_ has joined #ruby
elcontrastador has quit [Ping timeout: 268 seconds]
maufart__ has quit [Ping timeout: 256 seconds]
Serpent7776 has joined #ruby
anisha_ has joined #ruby
<guardian> I have text file in which I have "groups of lines separated by an empty line". Is there an idiomatic way of converting that into an array of arrays of strings?
gary__ has quit [Ping timeout: 240 seconds]
anisha has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
ecuanaso has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
DTZUZO has quit [Ping timeout: 260 seconds]
gary has joined #ruby
gary is now known as Guest57044
<guardian> yep
<guardian> sounds like it
<guardian> now the file weights 3GB, this is the output from the fdupes tool, maybe I shouldn't load all that into memory :D
<tbuehlmann> maybe!
<al2o3-cr> guardian: use IO.foreach
Beams has joined #ruby
morenoh149 has joined #ruby
<guardian> well File.read('dupes.txt') doesn't work...
<guardian> but the error is cryptic
<guardian> Errno::EINVAL (Invalid argument @ io_fread - dupes.txt)
<guardian> I thought I messed the file name but File.exists?('dupes.txt') returns true
InfinityFye has joined #ruby
mello has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drewmcmillan has joined #ruby
morenoh149 has quit [Ping timeout: 256 seconds]
maufart__ has joined #ruby
Gnut has joined #ruby
<guardian> thanks al2o3-cr and tbuehlmann, IO.foreach('dupes.txt', "\n\n") { |lines| lines.split } works for me. It gives me an array of strings at each top level iteration
aufi_ has quit [Ping timeout: 256 seconds]
Guest57044 has quit [Ping timeout: 256 seconds]
gary_ has joined #ruby
gary_ is now known as Guest3410
nadir has joined #ruby
RougeR has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
dn` has joined #ruby
dvdingus has quit [Ping timeout: 268 seconds]
megamosaren has joined #ruby
sylario has joined #ruby
alfiemax has joined #ruby
reber has quit [Remote host closed the connection]
Guest3410 has quit [Ping timeout: 276 seconds]
dvdingus has joined #ruby
gary__ has joined #ruby
<al2o3-cr> yw guardian
jenrzzz has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
anisha_ has quit [Ping timeout: 256 seconds]
aufi_ has joined #ruby
gary__ has quit [Ping timeout: 248 seconds]
bigblind has quit [Ping timeout: 240 seconds]
gary__ has joined #ruby
maufart__ has quit [Ping timeout: 268 seconds]
pskosinski has quit [Ping timeout: 248 seconds]
gary__ has quit [Ping timeout: 248 seconds]
gary__ has joined #ruby
pskosinski has joined #ruby
pskosinski is now known as Guest66922
workmad3 has joined #ruby
gary__ has quit [Ping timeout: 240 seconds]
gary__ has joined #ruby
jnyw has quit [Quit: WeeChat 2.0.1]
hayden___ has quit [Remote host closed the connection]
gary__ has quit [Ping timeout: 256 seconds]
gary__ has joined #ruby
hayden___ has joined #ruby
RougeR has quit [Ping timeout: 256 seconds]
yohji has quit [Ping timeout: 255 seconds]
morenoh149 has joined #ruby
bigblind has joined #ruby
milardovich has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
morenoh149 has quit [Ping timeout: 255 seconds]
mtkd has joined #ruby
milardovich has quit [Ping timeout: 265 seconds]
shinnya has joined #ruby
bigblind has quit [Ping timeout: 256 seconds]
yohji has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gary__ has quit [Ping timeout: 255 seconds]
gary has joined #ruby
gary is now known as Guest21355
dvdingus has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
jaruga has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
Guest21355 has quit [Ping timeout: 256 seconds]
gary_ has joined #ruby
gary_ is now known as Guest24441
alfiemax has quit [Remote host closed the connection]
marr has quit [Remote host closed the connection]
Cavallari has joined #ruby
sundhell_away is now known as sundhell
Guest24441 has quit [Ping timeout: 240 seconds]
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
gary__ has joined #ruby
alicefloyd has joined #ruby
alicefloyd has left #ruby [#ruby]
ldnunes has joined #ruby
morenoh149 has joined #ruby
dvdingus has joined #ruby
alfiemax has joined #ruby
<chridal> I have a 'server' that I've implemented, that's basically a for loop polling AWS SQS. I want to be able to test this with RSpec. If I start my server by running the `server` method, though, I'm not really able to stop it without doing CTRL-c
morenoh149 has quit [Ping timeout: 240 seconds]
<chridal> while loop **
<chridal> So my question is; how should I go about controlling this? I probably need some sort of wrapper around the whole thing, that will allow me to stop and start the server or something? A new thread?
<chridal> I will have to daemonize this at some point, and I really dont' want to mess too much with PID files etc.
devil_tux has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
Psybur_ has joined #ruby
amatas_ has joined #ruby
konsolebox has quit [Ping timeout: 256 seconds]
leitz has joined #ruby
mikecmpbll has joined #ruby
quobo has joined #ruby
gary__ has quit [Ping timeout: 256 seconds]
bigblind has joined #ruby
konsolebox has joined #ruby
alfiemax has joined #ruby
bigblind has quit [Ping timeout: 248 seconds]
konsolebox has quit [Ping timeout: 256 seconds]
Gnut has quit [Ping timeout: 268 seconds]
konsolebox has joined #ruby
gary__ has joined #ruby
marr has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
nowhereman_ has joined #ruby
AJA4350 has joined #ruby
_aeris_ has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
nowhere_man has quit [Ping timeout: 256 seconds]
dskon has quit [Read error: Connection reset by peer]
_aeris_ has joined #ruby
gary__ has quit [Ping timeout: 276 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gary has joined #ruby
gary is now known as Guest97168
bigblind has joined #ruby
Mike11 has quit [Ping timeout: 240 seconds]
jeffreylevesque has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
jokke has quit [Ping timeout: 276 seconds]
TheBrayn has quit [Ping timeout: 265 seconds]
Guest97168 has quit [Ping timeout: 265 seconds]
gary_ has joined #ruby
gary_ is now known as Guest85753
shinnya has quit [Ping timeout: 276 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
dcluna has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
S007 has quit [Quit: Quit]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jokke has joined #ruby
alfiemax has quit [Remote host closed the connection]
Guest85753 has quit [Ping timeout: 240 seconds]
TheBrayn has joined #ruby
drewmcmillan has joined #ruby
konsolebox has quit [Ping timeout: 276 seconds]
ineb has quit [Ping timeout: 240 seconds]
gary__ has joined #ruby
ineb has joined #ruby
konsolebox has joined #ruby
dcluna has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
goatish has joined #ruby
karapetyan has joined #ruby
phenom has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
gary__ has quit [Remote host closed the connection]
gary__ has joined #ruby
phenom has joined #ruby
clemens3 has quit [Ping timeout: 248 seconds]
SynSynack has quit [Quit: Не разучиться мечтать... любить...]
jokke has quit [Ping timeout: 240 seconds]
TheBrayn has quit [Ping timeout: 256 seconds]
gary__ has quit [Ping timeout: 255 seconds]
RougeR has quit [Ping timeout: 240 seconds]
S007 has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phenom has quit [Ping timeout: 248 seconds]
gary__ has joined #ruby
phenom has joined #ruby
Psybur_ is now known as Psybur
Psybur has quit [Changing host]
Psybur has joined #ruby
ogres has joined #ruby
TheBrayn has joined #ruby
Papierkorb has joined #ruby
Papierkorb has left #ruby ["Konversation terminated!"]
jokke has joined #ruby
za1b1tsu has joined #ruby
unreal has quit [Ping timeout: 256 seconds]
gary__ has quit [Ping timeout: 256 seconds]
DTZUZO has joined #ruby
milardovich has quit [Remote host closed the connection]
konsolebox has quit [Ping timeout: 276 seconds]
konsolebox has joined #ruby
synthroid has joined #ruby
Cavallari1 has joined #ruby
gary has joined #ruby
gary is now known as Guest41582
konsolebox has quit [Ping timeout: 256 seconds]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
Cavallari has quit [Ping timeout: 260 seconds]
Cavallari1 is now known as Cavallari
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
konsolebox has joined #ruby
n0m4d1c has joined #ruby
jeffreylevesque has joined #ruby
Guest41582 has quit [Ping timeout: 260 seconds]
govg has quit [Ping timeout: 256 seconds]
gary_ has joined #ruby
gary_ is now known as Guest26349
jtroseme has joined #ruby
jeffreylevesque_ has joined #ruby
jeffreylevesque has quit [Ping timeout: 240 seconds]
nadir has quit [Quit: Connection closed for inactivity]
dvdingus has quit [Ping timeout: 248 seconds]
konsolebox has quit [Ping timeout: 240 seconds]
vutral|kali has quit [Excess Flood]
konsolebox has joined #ruby
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
drewmcmillan has joined #ruby
rwb has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
govg has joined #ruby
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
memo1 has joined #ruby
xfbs has quit []
Guest26349 has quit [Ping timeout: 252 seconds]
gary__ has joined #ruby
ldepandis has joined #ruby
milardovich has quit [Ping timeout: 255 seconds]
beauby has quit [Ping timeout: 256 seconds]
gary__ has quit [Ping timeout: 240 seconds]
mello has quit [Ping timeout: 256 seconds]
dinfuehr has quit [Ping timeout: 252 seconds]
gary__ has joined #ruby
dinfuehr has joined #ruby
cagomez has joined #ruby
chmuri has quit [Excess Flood]
clemens3 has joined #ruby
gary__ has quit [Ping timeout: 240 seconds]
chmurifree has joined #ruby
bngsudheer has joined #ruby
cagomez has quit [Ping timeout: 256 seconds]
<bngsudheer> Can I ask a question about installing ruby gem?
ecuanaso has joined #ruby
goatish has quit [Quit: Hibernating]
gary__ has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> bngsudheer: Yes.
bmurt has joined #ruby
<leitz> Beats asking a question about asking a question. We seem to be a questionable lot...
RougeR has joined #ruby
gary__ has quit [Ping timeout: 256 seconds]
cagomez has joined #ruby
lesce has joined #ruby
cagomez has quit [Ping timeout: 276 seconds]
drewmcmillan has joined #ruby
cadillac_ has quit [Ping timeout: 268 seconds]
gary has joined #ruby
gary is now known as Guest12204
megamosaren has quit [Ping timeout: 256 seconds]
jcalla has joined #ruby
LocaMocha has quit [Ping timeout: 255 seconds]
DTZUZO has quit [Ping timeout: 256 seconds]
sidx64 has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
Guest12204 has quit [Ping timeout: 260 seconds]
gary_ has joined #ruby
rgr has quit [Quit: rgr]
gary_ is now known as Guest96067
milardovich has joined #ruby
ecuanaso has joined #ruby
FrostCandy has joined #ruby
<FrostCandy> I'm trying to create a hash with an array of hash's (objects) in it - https://gist.github.com/anonymous/c895d328d1d8684c37308d7f5ae8353f
bogdan has joined #ruby
<FrostCandy> Is that the right way to write it?
konsolebox has quit [Ping timeout: 265 seconds]
Cope has quit [Ping timeout: 256 seconds]
konsolebox has joined #ruby
cadillac_ has joined #ruby
<tobiasvl> FrostCandy: did you try it?
<FrostCandy> ya it seems to work but i'm trying to send it in an http::post which I guess can't seem to send the data field as an array
<FrostCandy> request.set_form_data(d) fails i think
<FrostCandy> i'l have to look into it
<chridal> I'm trying to stub out a class (RestClient) in RSpec. Is it possible to 'replace' the RestClient for that file (which is deeply nested beneath this call), or do I have to do dependency injection?
Cavallari1 has joined #ruby
beauby has joined #ruby
<chridal> I'd rather not inject the dependency, because I'm doing an integration test, and the use of RestClient is 4-5 files away from my current call
LocaMocha has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
Cavallari has quit [Ping timeout: 256 seconds]
Cavallari1 is now known as Cavallari
za1b1tsu has quit [Remote host closed the connection]
sagax has joined #ruby
bmurt has joined #ruby
<sagax> hi all!
<sagax> please help,
<sagax> how i can see what methods be exports when i require some package?
<chridal> Thanks!
<FrostCandy> tobiasvl: Ah set_form_data doen't handle nested hashes.
<sagax> example, when require "open-uri" we have method "open"
Matthew1 has quit [Ping timeout: 264 seconds]
<sagax> but how to i see all methods who was exports from package?
cagomez has quit [Ping timeout: 248 seconds]
sundhell is now known as sundhell_away
rwb has joined #ruby
Guest96067 has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
vondruch has quit [Client Quit]
vondruch has joined #ruby
desperek has joined #ruby
bogdan has quit [Quit: bogdan]
gary__ has joined #ruby
cout_ is now known as cout
n0m4d1c has quit [Remote host closed the connection]
bogdan has joined #ruby
bogdan has quit [Client Quit]
pastorinni has joined #ruby
Cope has joined #ruby
Cope is now known as Guest60084
beauby has quit [Ping timeout: 260 seconds]
megamos has joined #ruby
gary__ has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 255 seconds]
Guest60084 has quit [Ping timeout: 276 seconds]
beauby has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gary__ has joined #ruby
beauby_ has joined #ruby
milardovich has joined #ruby
beauby has quit [Ping timeout: 240 seconds]
devil_tux has quit [Ping timeout: 240 seconds]
jeffreylevesque has joined #ruby
Cavallari has quit [Quit: Cavallari]
gary__ has quit [Ping timeout: 256 seconds]
chrisarcand has quit [Remote host closed the connection]
gary has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
gary is now known as Guest35710
xfbs has joined #ruby
jeffreylevesque_ has quit [Ping timeout: 252 seconds]
jeffreylevesque_ has joined #ruby
jeffreylevesque has quit [Ping timeout: 240 seconds]
HeikkiG has joined #ruby
rippa has joined #ruby
<HeikkiG> good day, does anyone know whether ruby's standard library has a function to tell if a unicode codepoint belongs to number group?
k0mpa has joined #ruby
moei has joined #ruby
Rapture has joined #ruby
adlerdias has joined #ruby
<apeiros> HeikkiG: might work with regex and \p character classes
Guest35710 has quit [Ping timeout: 256 seconds]
gary_ has joined #ruby
gary_ is now known as Guest59147
<HeikkiG> thanks !
<apeiros> please tell whether it works. I'm actually curious. I think it'd be \p{N}
troys has joined #ruby
<HeikkiG> works well indeed!
regedit_ has joined #ruby
ta_ has quit [Remote host closed the connection]
Cope has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cope is now known as Guest15477
schneide_ has quit [Remote host closed the connection]
snath has quit [Ping timeout: 256 seconds]
John_Ivan has quit [Ping timeout: 240 seconds]
Gnut has joined #ruby
megamos has quit [Ping timeout: 276 seconds]
schneide_ has joined #ruby
Guest59147 has quit [Ping timeout: 260 seconds]
gary__ has joined #ruby
jeffreylevesque_ has quit [Ping timeout: 256 seconds]
megamos has joined #ruby
bmurt has joined #ruby
cadillac_ has quit [Ping timeout: 256 seconds]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
HeikkiG has quit [Quit: Leaving.]
cadillac_ has joined #ruby
S007 has quit [Quit: Quit]
mikecmpb_ has joined #ruby
gary__ has quit [Ping timeout: 265 seconds]
gary__ has joined #ruby
mikecmpbll has quit [Ping timeout: 264 seconds]
apricant has joined #ruby
halt has joined #ruby
chrisarcand has joined #ruby
halt is now known as Guest9062
S007 has joined #ruby
gizmore has joined #ruby
CyberShadow has joined #ruby
OyoKooN has joined #ruby
GinoMan has joined #ruby
krawchyk has joined #ruby
megamos has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
megamos has joined #ruby
gary__ has quit [Ping timeout: 265 seconds]
gary__ has joined #ruby
CyberShadow has left #ruby [#ruby]
beauby has joined #ruby
beauby_ has quit [Read error: Connection reset by peer]
schneide_ has quit [Remote host closed the connection]
conta has quit [Ping timeout: 276 seconds]
gary__ has quit [Ping timeout: 256 seconds]
gary__ has joined #ruby
Mike11 has joined #ruby
TomyWork has quit [Remote host closed the connection]
jtroseme has quit [Quit: Leaving]
banisterfiend has joined #ruby
schneide_ has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
sparr has quit [Quit: WeeChat 1.9.1]
dinfuehr has quit [Ping timeout: 256 seconds]
megamos has quit [Ping timeout: 255 seconds]
dinfuehr has joined #ruby
schneide_ has quit [Ping timeout: 268 seconds]
krawchyk has quit [Ping timeout: 256 seconds]
gary__ has quit [Ping timeout: 256 seconds]
gary has joined #ruby
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
gary is now known as Guest47952
dviola has joined #ruby
apeiros__ has joined #ruby
apeiros__ has quit [Read error: Connection reset by peer]
Guest47952 has quit [Ping timeout: 248 seconds]
gary_ has joined #ruby
gary_ is now known as Guest10879
apeiros has quit [Ping timeout: 240 seconds]
mikecmpb_ has quit [Quit: inabit. zz.]
jaruga has quit [Quit: jaruga]
jaruga has joined #ruby
mikecmpbll has joined #ruby
devil_tux has joined #ruby
Puffball has quit [Remote host closed the connection]
mtkd has quit []
ogres has joined #ruby
Puffball has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has joined #ruby
mtkd has joined #ruby
jeffreylevesque has joined #ruby
megamosaren has joined #ruby
Guest10879 has quit [Ping timeout: 256 seconds]
gary__ has joined #ruby
milardovich has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snath has joined #ruby
banisterfiend has joined #ruby
beauby has quit [Ping timeout: 240 seconds]
snath has quit [Client Quit]
snath has joined #ruby
cagomez has joined #ruby
gary__ has quit [Ping timeout: 256 seconds]
gary__ has joined #ruby
troys has quit [Read error: Connection reset by peer]
krawchyk has joined #ruby
mcr1 has quit [Ping timeout: 252 seconds]
DTZUZO has joined #ruby
gary__ has quit [Ping timeout: 265 seconds]
krawchyk has quit [Quit: krawchyk]
andikr has quit [Remote host closed the connection]
gary__ has joined #ruby
marxarelli|afk is now known as marxarelli
troys has joined #ruby
clemens3 has quit [Ping timeout: 260 seconds]
beauby has joined #ruby
gary__ has quit [Ping timeout: 240 seconds]
lesce has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sumobob has joined #ruby
OyoKooN has quit [Quit: Textual IRC Client: www.textualapp.com]
InfinityFye has quit [Quit: Leaving]
apricant has quit [Ping timeout: 256 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
drewmcmillan has joined #ruby
drewmcmillan has quit [Client Quit]
Mike11 has quit [Quit: Leaving.]
apeiros has joined #ruby
drewmcmillan has joined #ruby
krawchyk has joined #ruby
gary has joined #ruby
gary is now known as Guest54534
ecuanaso has joined #ruby
krawchyk has quit [Client Quit]
jaruga has quit [Quit: jaruga]
lesce has joined #ruby
krawchyk has joined #ruby
schneide_ has joined #ruby
jcarl43 has joined #ruby
riotjoe has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest54534 has quit [Ping timeout: 256 seconds]
riotjones has quit [Ping timeout: 260 seconds]
adlerdias has left #ruby [#ruby]
Serpent7776 has quit [Quit: Leaving]
aufi_ has quit [Quit: Leaving]
tomphp has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
yohji has quit [Remote host closed the connection]
krawchyk has quit [Read error: Connection reset by peer]
chouhoul_ has joined #ruby
chouhou__ has joined #ruby
gary_ has joined #ruby
gary_ is now known as Guest83474
chouho___ has joined #ruby
amatas_ has quit [Quit: amatas_]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adlerdias has joined #ruby
chouh____ has joined #ruby
chouhoulis has quit [Ping timeout: 255 seconds]
amatas_ has joined #ruby
chouhoulis has joined #ruby
d5sx43 has joined #ruby
amatas_ has quit [Remote host closed the connection]
riotjoe has quit [Remote host closed the connection]
s2013 has joined #ruby
d5sx43 has quit [Client Quit]
chouhoul_ has quit [Ping timeout: 276 seconds]
tomphp has quit [Ping timeout: 268 seconds]
riotjones has joined #ruby
chouhoul_ has joined #ruby
safetypin has joined #ruby
Guest83474 has quit [Ping timeout: 240 seconds]
chouhou__ has quit [Ping timeout: 268 seconds]
delaz has joined #ruby
delaz has left #ruby [#ruby]
chouhou__ has joined #ruby
amatas_ has joined #ruby
chouho___ has quit [Ping timeout: 256 seconds]
n0m4d1c has joined #ruby
chouho___ has joined #ruby
amatas_ has quit [Client Quit]
chouh____ has quit [Ping timeout: 265 seconds]
chouh____ has joined #ruby
cadillac_ has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Ping timeout: 265 seconds]
chouhoulis has joined #ruby
chouhoul_ has quit [Ping timeout: 265 seconds]
darkhanb has joined #ruby
chouhoul_ has joined #ruby
chouhou__ has quit [Ping timeout: 252 seconds]
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 252 seconds]
chouhou__ has quit [Read error: Connection reset by peer]
rrutkowski has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
chouhou__ has joined #ruby
amatas_ has joined #ruby
cadillac_ has joined #ruby
chouh____ has quit [Ping timeout: 256 seconds]
mynamei5 has joined #ruby
mynamei5 has quit [Client Quit]
tvw has quit [Remote host closed the connection]
Beams has quit [Quit: .]
mynamei5 has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
rrutkowski has quit [Client Quit]
chouhoul_ has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
rrutkowski has joined #ruby
megamosaren has quit [Ping timeout: 248 seconds]
Guest15477 is now known as Cope
s3nd1v0g1us has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aupadhye has quit [Quit: Leaving]
gary__ has joined #ruby
n008f4g_ has joined #ruby
orbyt_ has joined #ruby
bmurt has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
despai has joined #ruby
rrutkowski has joined #ruby
clemens3 has joined #ruby
gary__ has quit [Ping timeout: 256 seconds]
sanscoeur has joined #ruby
sanscoeur has quit [Remote host closed the connection]
sanscoeur has joined #ruby
cagomez has quit [Remote host closed the connection]
mynamei5 has quit [Quit: No Ping reply in 180 seconds.]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
mynamei5 has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
banisterfiend has joined #ruby
despai has quit [Quit: ...]
despai has joined #ruby
bngsudheer has left #ruby ["Leaving"]
cagomez has quit [Ping timeout: 256 seconds]
n008f4g_ has quit [Ping timeout: 256 seconds]
memo1 has quit [Ping timeout: 240 seconds]
gary has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gary is now known as Guest13624
bngsudheer has joined #ruby
regedit_ is now known as regedit
guille-moe has quit [Ping timeout: 240 seconds]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
Guest13624 has quit [Ping timeout: 268 seconds]
lesce has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RougeR has quit [Ping timeout: 256 seconds]
mynamei5 has quit [Quit: No Ping reply in 180 seconds.]
mynamei5 has joined #ruby
mynamei5 has quit [Remote host closed the connection]
xenops has joined #ruby
hdb2 has joined #ruby
<hdb2> hello - new to ruby, I am trying to open a file using whatever editor the user has set in their env. I came up with system("#{ENV['EDITOR']}, file) from google, but this throws an error. can someone point me in the right direction?
drewmcmillan has joined #ruby
<hdb2> it appears that I can call the editor by name, e.g. system('vi', foo) but I'd like to generalize it
workmad3 has quit [Ping timeout: 240 seconds]
<zmo> hdb2 - you need to have the $EDITOR env variable set up before you run your script
<zmo> it's often the case, but it's not always the case
workmad3 has joined #ruby
alfiemax has quit [Remote host closed the connection]
guille-moe has joined #ruby
<elomatreb> And it needs to be exported of course, try just debug printing ENV and see if it's there at all
karapetyan has joined #ruby
<hdb2> zmo: understood. if I have that variable set (say, in my .bashrc), is system what I need to use to open the file with $EDITOR or something else?
* dminuoso does some smalltalk with elomatreb
* dminuoso sends elomatreb :hi
<elomatreb> :hello
<dminuoso> Oh goodie!
<zmo> hdb2 - launch irb
* dminuoso sends elomatreb :launch_nukes
<zmo> and then run system(ENV['EDITOR'])
<zmo> and you'll see
sumobob has quit [Ping timeout: 260 seconds]
mcr1 has joined #ruby
sameerynho has joined #ruby
<elomatreb> dminuoso: :pew_pew
<hdb2> zmo: I'll dig into that - thank you for the help!
eckhardt has joined #ruby
sumobob has joined #ruby
<zmo> damn… rails is driving me crazy… I'm running it in docker-compose, I do docker-compose --build up -d, it's working fine, but if I do docker-compose run web rails generate migration fubar, shits hits the fan saying about one of my deps: 'Could not find kaminari-core-1.1.1 in any of the sources' but it's there and the code works, bloody !@#$
beauby has quit [Ping timeout: 256 seconds]
zkv has joined #ruby
milardovich has quit [Remote host closed the connection]
<dminuoso> zmo: That does not sound too surprising.
<dminuoso> zmo: Can you share your Dockerfile?
mcr1 has quit [Ping timeout: 276 seconds]
lytol has joined #ruby
ramfjord has joined #ruby
sameerynho has quit [Ping timeout: 276 seconds]
<zmo> hum
<zmo> sounds like that URL won't work
<zmo> even if I checked public
<zmo> let me repost
sameerynho has joined #ruby
17SAAQ7S9 has joined #ruby
despai has quit [Quit: ...]
<zmo> that one should be public https://gitlab.com/snippets/1699905
gary_ has joined #ruby
amatas_ has quit [Quit: amatas_]
gary_ is now known as Guest78193
<alex``> Is there a built-in method to pick entries from hash?
<zmo> alex`` - what you mean?
<alex``> Reduce a hash from some entries
<zmo> Hash#filter ?
<alex``> Hum
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 276 seconds]
<zmo> sorry
<zmo> I think it's Hash#select
<dminuoso> alex``: .to_a.select.to_h
<zmo> or something like that
<alex``> Something like
<dminuoso> But I guess
<alex``> node = self.class.send(:new, self.class.pick(hash, :identifier, :value))
<dminuoso> Hash#select does that
sundhell_away is now known as sundhell
<zmo> (too much python)
<dminuoso> &ri Hash#selecft
<`derpy> No results
<dminuoso> &ri Hash#select
<alex``> def self.pick hash, *values
<alex``> hash.select do |key, value|
<alex``> values.include? value
<alex``> end
<alex``> end
<havenwood> alex``: Do you know the keys you're looking for?
<alex``> Hash#select is too verbose
* dminuoso pokes havenwood
* dminuoso stabs havenwood
<alex``> I would like something like Hash#pick([key]...)
<zmo> alex`` - so you want a select on values?
<alex``> on keys
<alex``> I want call a method with named parameters
<alex``> node = self.class.send(:new, self.class.pick(hash, :identifier, :value))
<havenwood> {a: 100, b: 200, c: 300}.slice(:b, :a) #=> {:b=>200, :a=>100}
<havenwood> {a: 100, b: 200, c: 300}.values_at(:b, :a) #=> [200, 100]
ta_ has joined #ruby
<alex``> so node = new(identifier: hash[:identifier], value: hash[:value])
Guest78193 has quit [Ping timeout: 264 seconds]
<alex``> havenwood: That slice!
<alex``> Thanks
<alex``> By the way, if I had to create helpers methods, like this one, where to put them?
<alex``> I have a Node class in lib/node.rb
<alex``> It is best to put at the bottom after `private`?
<alex``> or a new file
<zmo> dminuoso - why did you ask about the Dockerfile? any hint there?
<alex``> and if a new file, how to organize the code
<alex``> zmo: = guyzmo?
anjen has joined #ruby
<dminuoso> zmo: Oh sorry didnt see you already posted it.
<zmo> alex`` - indeed
<alex``> :)
<zmo> dminuoso - no problem :)
<zmo> alex`` = alex` ? :)
<alex``> \_o<
<havenwood> alex``: Sure, you can always define a private method that acts as a function with the hash as the first argument. Other options include extracting it to a module with module_function, or using a refinement.
alfiemax has joined #ruby
<dminuoso> zmo: You need an additional layer I think.
<havenwood> alex``: Just avoid globally m̶o̶n̶k̶e̶y̶ freedom patching the core class of Hash.
<zmo> dminuoso - what do you mean?
<dminuoso> zmo: The topmost layer does not have the bundle installed.
<dminuoso> Since that's your RUN command
<dminuoso> Or.. Im not 100% sure about this. But I think it might not work.
<alex``> havenwood: Yep I was tempted to do def Hash.pick or something
<dminuoso> zmo: Nevermind, Im not quite clear headed.
<alex``> but figured it was a bad idea as it can conflict with the code of other
<zmo> uhuh ok
<baweaver> >> def foo(key:,value:) "#{key}: #{value}"end;hash={key:1,value:2};foo(**hash) # :D
<ruby[bot]> baweaver: # => "1: 2" (https://eval.in/959765)
<dminuoso> zmo: So let me just ask this. Why are you trying to generate a migration inside the docker container at all?
<havenwood> alex``: A refinement lets you safely limit the scope of such a change.
<dminuoso> zmo: (The reason I got confused is because I thought you actually ran "bundle install" as your CMD since it was at the bottom. Then pure mimicry just repeated RUN.
<dminuoso> Which confused me slightly.
<baweaver> Refinements are weapons of a more civilized age
* dminuoso hands baweaver his lightrefinement
GinoMan has quit [Remote host closed the connection]
<dminuoso> baweaver: Outside this channel Ive yet to see them anywhere.
<baweaver> (honestly same here)
<dminuoso> They are like flipflop. We all itch to use it but nobody seems to know what it is.
kapil___ has joined #ruby
<zmo> dminuoso - well, it's all working fine, except when I run a rails command where it complains I don't have a dependency installed
GinoMan has joined #ruby
bmurt has joined #ruby
<zmo> dminuoso - ah, missed your question
<dminuoso> zmo: that means its not picking up the bundle. its possible the binstub might not work depending on the further details of your docker container
<dminuoso> zmo: try running it through `bundle exec`
GinoMan has quit [Remote host closed the connection]
<zmo> dminuoso - well, TBH, it's because it's how I've been told how to do it
roshanavand has quit [Ping timeout: 265 seconds]
<zmo> and because I don't have the rails stuff configured configured the same locally
<dminuoso> zmo: Just out of curiousity, try running `bundle exec rails ...` instead of raw `rails`
<dminuoso> Somehow I expect that to work.
<zmo> *AH*
<dminuoso> zmo: If that works, add a "rehash" CMD.
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> See if that allows the rails binstub to function
GinoMan has joined #ruby
<dminuoso> Or just live with `bundle exec`
<zmo> docker-compose exec web bundle rails generate migration
<zmo> does not work
<dminuoso> zmo: It's `bundle exec rails generate migrationz`
<dminuoso> zmo: It's `bundle exec rails generate migration`
<dminuoso> zmo: essentially when you run `rails` commands inside a bundler directory, the binstub detects it, and ends up doing something similar anyway.
<zmo> you mean outside of the docker ?
<dminuoso> well
<dminuoso> docker-compose exec web bundle exec rails generate migration
<dminuoso> you were missing the "exec" command for "bundler" there
dvdingus has joined #ruby
<zmo> ah
<zmo> double exec
<zmo> my bad
<dminuoso> One is for docker-compose, the other is for `bundler` ;)
GinoMan has quit [Max SendQ exceeded]
<zmo> too many execs :)
<dminuoso> zmo: That being said, is there a reason you generate migrations inside a docker container?
<zmo> ok, with the too many execs, still same issue
<zmo> it's because my local environment is not configured
<zmo> and I'm not even running the same ruby outside of the docker than from within
jamesaxl has joined #ruby
<zmo> (maybe I should upgrade, though)
<dminuoso> zmo: so what?
<dminuoso> zmo: just generate the migration outside, and then rebuild from that layer
<zmo> and it's also because it's how I've been told to do stuff, and it was working up until now
milardovich has joined #ruby
<havenwood> alex``: That's an example of backporting Hash#slice with a refinement.
Rapture has quit [Ping timeout: 260 seconds]
drewmcmillan has joined #ruby
<alex``> havenwood: What is for back-porting?
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> zmo: I wonder, what does your docker-compose.yml look like?
<havenwood> alex``: Hash#slice was introduced in Ruby 2.5. If you'd like to implement it yourself, that's ^ an example of how to do it with refinements.
<alex``> Oh oki
hdb2 has quit [Ping timeout: 256 seconds]
<alex``> Always use the Ruby head version :p
sameerynho has joined #ruby
<alex``> havenwood: You know the Ruby equivalent of JavaScript to construct hash from variable names?
milardovich has quit [Ping timeout: 268 seconds]
<alex``> In JS: a = 1; b = 2; { a, b }; # => { a: 1, b: 2 }
amatas_ has joined #ruby
dnewkerk has joined #ruby
gary has joined #ruby
karapetyan has quit [Remote host closed the connection]
gary is now known as Guest79136
Cope has quit [Ping timeout: 240 seconds]
dnewkerk_ has joined #ruby
<baweaver> Nope, Ruby doesn't have a concept of object (hash) destructuring or assignment
<baweaver> ...yet
<dminuoso> zmo: The more I look at this the more Im confused. `bundle exec run` should work
alex`` has quit [Ping timeout: 256 seconds]
<dminuoso> zmo: *docker-compose run bundle exec rails
Guest79136 has quit [Ping timeout: 256 seconds]
* baweaver grabs black magic grimoire
memo1 has joined #ruby
cdg has quit [Remote host closed the connection]
dnewkerk_ has quit [Client Quit]
cdg has joined #ruby
nowhere_man has joined #ruby
erlend has quit [Ping timeout: 256 seconds]
dnewkerk_ has joined #ruby
karapetyan has joined #ruby
<havenwood> >> a = 1; b = 2; %i{a b}.select { |key| binding.local_variable_defined?(key) }.map { |key| [key, binding.local_variable_get(key)] }.to_h
<havenwood> >.>
<ruby[bot]> havenwood: # => {:a=>1, :b=>2} (https://eval.in/959781)
erlend has joined #ruby
<zmo> ok I don't get rails at all
<zmo> dminuoso - I'm not sure what I've done
<zmo> but now it's working
<bougyman> I get it. That's why I don't use it.
dnewkerk has quit [Quit: dnewkerk]
dnewkerk_ has quit [Client Quit]
<zmo> bougyman - well, I heritated this project six months back, and everyday has been a struggle
dnewkerk has joined #ruby
nowhereman_ has quit [Ping timeout: 260 seconds]
<dminuoso> bougyman: Hah.
<zmo> and because I did not know rails originally, I considered I did not know enough, but 6 months later, I just know it's rails.
<dminuoso> bougyman: The more I understand Rails, the less I use it.
guille-moe has quit [Ping timeout: 256 seconds]
mcr1 has joined #ruby
<zmo> I'm currently rewriting most of the controller stuff with DRY and Trailblazer, and I'm exposing it all as grape API
<WA9ACE> I end up building from the ground up with sinatra, then normally by the 2-3 month mark I've built my own padrino on top of Sinatra
drewmcmillan has quit [Quit: Textual IRC Client: www.textualapp.com]
<zmo> WA9ACE - I'm coming from python+flask, so I totally hear you
cdg has quit [Ping timeout: 276 seconds]
<WA9ACE> I like Flask too
<havenwood> <3 Roda
LocaMocha has quit [Remote host closed the connection]
<dminuoso> zmo: Trailblazer is really great :)
<dminuoso> zmo: Which of their libraries are you using?
<dminuoso> WA9ACE: I found too much time in Rails is spend figuring magic DSL, filters, magic callbacks, more DSL - and then some more to accomplish goals
<dminuoso> When instead you could have just written code to solve the problem.
<zmo> dminuoso - I'm still discovering, so it's only the basics
sundhell is now known as sundhell_away
despai has joined #ruby
claudiuinberlin has joined #ruby
<dminuoso> zmo: No I meant like, are you using cells? formular? operation? representable?
<WA9ACE> dminuoso I don't disagree, however at the moment I'm bootstrapping a new rails app for work with devise and activeadmin
<zmo> mostly the raw trailblazer stuff (step/success/failure) and the formal validation API (which I think is from DRY)
<WA9ACE> took all of 30 minutes
konos5_ has joined #ruby
<zmo> well, the tragedy in my code is that I inherited it as it was like 6kLOC, with a huge schema (about 13 tables) some with 5× n-ary associations
<zmo> and NOT A SINGLE FSCKING BL**DY TEST !@#$
<WA9ACE> I feel for you there
<zmo> and I knew very little of ruby and rails
mikecmpbll has joined #ruby
<WA9ACE> sometimes I feel like people started with rails and never learned how to normalize a schema
riotjoe has joined #ruby
<zmo> so I spent like 4 months trying to stop the bleeding, and now I'm preparing for the future, which means rewriting everything through trailblazer
<zmo> dminuoso - about trailblazer, I think it's only operations
* apeiros drops "polymorphic association", waits for WA9ACE' reaction
<apeiros> zmo: 13 tables isn't even close to huge. sorry.
<WA9ACE> there's also that ^
xfbs has quit []
<WA9ACE> last large product I worked on (Play framework/Scala) was 56 tables
<zmo> it's all relative
banisterfiend has joined #ruby
<zmo> for a simple booking system it's huge
<zmo> it should be half of that
krawchyk has joined #ruby
<apeiros> "unnecessarily big/complex" then
riotjones has quit [Ping timeout: 256 seconds]
<apeiros> and yes. rarely seen software which isn't.
<zmo> apeiros - you're loosing the frustration of the exageration
<zmo> s/of the/in the/
cadillac_ has quit [Ping timeout: 264 seconds]
<apeiros> I save it for the big bang
<zmo> and s/loosing/losing/
<apeiros> and exaggeration ;-)
riotjoe has quit [Ping timeout: 263 seconds]
<zmo> damn
<zmo> I guess I should call it a day
mtkd has quit [Ping timeout: 256 seconds]
<apeiros> what a week…
<zmo> (though, it really takes two g ? oO)
<WA9ACE> apeiros polymorphic associations...
<zmo> (learned a thing today)
cadillac_ has joined #ruby
mtkd has joined #ruby
tomlazar has joined #ruby
morenoh149 has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
<zmo> apeiros - lol, it got filtered
anjen has quit [Quit: anjen]
<WA9ACE> a smart man learns from his own mistakes, a wise man learns from the mistakes of others
<WA9ACE> people using polymorphic associations will learn from the former
<apeiros> and idiots think they make no mistakes
<WA9ACE> ^
<Yxhuvud> 56 tables? large? heh.
<apeiros> of course, I'm the exception 🤪
<WA9ACE> `rescue ApeirosEx => e`
amatas_ has quit [Ping timeout: 256 seconds]
<apeiros> what do you want to do with my Ex?
Cope has joined #ruby
<WA9ACE> when people say "ace why don't you write tests?" I just tell them I don't write bugs
<WA9ACE> only features
Cope is now known as Guest79173
<WA9ACE> nice little bitey bug shaped features
<apeiros> you're tame.
<WA9ACE> just kidding, I write tests
<WA9ACE> sometimes
<apeiros> I push them against the wall, elbow in their throat: "WHAT?!? Are you saying my code was buggy?!?"
<WA9ACE> I was going for the Bob Ross style
<zmo> tests are for loosers
<WA9ACE> we only make happy little bugs
<dminuoso> tests are for people without type checkers.
<dminuoso> oh wait..
* apeiros writes far too few tests :(
Rapture has joined #ruby
<WA9ACE> ah yes, because we've never written bugs in statically typed languages
Psybur is now known as SecretNINJA
elementaru has quit [Read error: Connection reset by peer]
Guest79173 has quit [Ping timeout: 240 seconds]
SecretNINJA is now known as Psybur
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
<banisterfiend> apeiros yo
<apeiros> oy banisterfiend
<banisterfiend> apeiros have you ever written tests for stuff that touches the file system? what's your approach?
<banisterfiend> i'm struggling
<apeiros> banisterfiend: actually I have
<apeiros> 2 approaches
<banisterfiend> my approach has been rewriting the class so that it can deal with a super minimal number of files, writing those to a temp folder, and then explicitly checking the file system
<banisterfiend> but those aren't strictly unit tests
<apeiros> there's fakefs/mockfs (not sure about the name anymore)
<banisterfiend> oh ok
<apeiros> and the other approach was that I used a directory within the test-dir
tomlazar has quit [Quit: Leaving]
Cope_ has joined #ruby
<apeiros> but the latter only works if you can restrict your stuff to relative paths
<zmo> anyway, calling it a day
<zmo> thank you 🙌
* zmo &
<banisterfiend> apeiros nice
<banisterfiend> apeiros how flakey is fakefs though?
<apeiros> no idea
<apeiros> been a while since I used it, and that wasn't much either
<banisterfiend> i'm finding it kinda difficult, and *really* dont want to stub out FileUtils and the 'system' call, heh
alfiemax has quit [Ping timeout: 260 seconds]
gary_ has joined #ruby
gary_ is now known as Guest84818
Cope_ has quit [Ping timeout: 260 seconds]
tlazar has joined #ruby
Guest84818 has quit [Ping timeout: 268 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
megamosaren has joined #ruby
pastorinni has quit [Ping timeout: 240 seconds]
nadir has quit [Quit: Connection closed for inactivity]
ramfjord has joined #ruby
alex`` has joined #ruby
despai has quit [Quit: ...]
sumobob has quit [Ping timeout: 264 seconds]
nadir has joined #ruby
yorickpeterse has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneide_ has quit []
ramfjord has joined #ruby
shinnya has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
cthulchu has quit [Ping timeout: 265 seconds]
ramfjord has joined #ruby
lesce has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
regedit has quit [Quit: Connection closed for inactivity]
adlerdias has quit [Ping timeout: 248 seconds]
despai has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
megamosaren has quit [Quit: Leaving]
ramfjord has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lesce has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nopolitica has joined #ruby
Cope has joined #ruby
Cope is now known as Guest72395
cthulchu has joined #ruby
lesce has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
quobo has joined #ruby
chmurifree has quit [Ping timeout: 240 seconds]
Psybur has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
s3nd1v0g1us has quit [Ping timeout: 240 seconds]
sumobob has joined #ruby
ramfjord has joined #ruby
gary has joined #ruby
SynSynack has joined #ruby
gary is now known as Guest42395
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dimik has joined #ruby
tvw has joined #ruby
despai has quit [Quit: ...]
sundhell_away is now known as sundhell
lesce has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sumobob has quit [Ping timeout: 256 seconds]
<ineb> i used fakefs once but ended up with using tmpdirs for fs related tests
Guest42395 has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
yqt has joined #ruby
yqt has quit [Client Quit]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Exuma has joined #ruby
lesce has joined #ruby
orbyt_ has joined #ruby
chmurifree has joined #ruby
despai has joined #ruby
Brandonc123 has joined #ruby
gary_ has joined #ruby
gary_ is now known as Guest34388
xfbs has joined #ruby
jeffreylevesque_ has joined #ruby
xfbs has quit [Client Quit]
milardovich has joined #ruby
Guest34388 has quit [Ping timeout: 268 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Brandonc123 has quit []
jeffreylevesque has quit [Ping timeout: 256 seconds]
Brandonc123 has joined #ruby
<baweaver> banisterfiend: I found binding_of_caller
<baweaver> and I tried to do something very bad with it
<banisterfiend> baweaver lol
<banisterfiend> yeah it allows some very naughty stuff
<baweaver> Think Javascript: const {a, b} = {a: 1, b: 2}
lesce has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest72395 has quit [Ping timeout: 264 seconds]
<baweaver> .....in Ruby
<banisterfiend> wow show me?
<baweaver> Still trying to get it to work, but will gist what I have so far
<banisterfiend> sounds epic
bmurt has joined #ruby
<baweaver> sets(:a, :b) < {a: 1, b: 2}
mtkd has quit []
<banisterfiend> oh yeah i htink i get it
darkhanb has joined #ruby
<banisterfiend> but i dont htink those locals will last right?
<baweaver> nope, they get lined out
n008f4g_ has joined #ruby
<baweaver> Was trying to see if I could find a way around that
<banisterfiend> so you probably have to define methods in the caller scope
<banisterfiend> which is kinda nasty
<baweaver> short of ivar/accessors
<baweaver> yep
<baweaver> I don't think it's entirely possible
milardovich has quit [Ping timeout: 248 seconds]
<banisterfiend> what about: a,b = foo({a: 1, b: 2})
<banisterfiend> would that work?
<banisterfiend> or the locals still aren't dfeined i guess?
<baweaver> Somewhat
<baweaver> yep
Brandonc123 has quit [Client Quit]
<baweaver> problem is mapping local a to hash :a
<banisterfiend> this would work though
<baweaver> because if that were the case then just: a, b = hash.slice(:a, :b)
<banisterfiend> yeah
<banisterfiend> or more like: a,b = hash.values_at(:a, :b)
<banisterfiend> you might have to something janky with bytecode?
<baweaver> I mean one _could_ just add a transpilation layer.
<baweaver> yeah, or that
<banisterfiend> i havne't messe dmuch with it, but perhaps something related to InstructionSequences
delaz has joined #ruby
* apeiros hits banisterfiend with a transpiler
<baweaver> short of futzing the VM I don't think it can be done
<apeiros> whoops, sorry, wrong target!
* apeiros hits baweaver with a transpiler
<banisterfiend> lol
<baweaver> I'll have to look into InstrucitonSequences
<baweaver> anyone have some good reads around that?
delaz has left #ruby [#ruby]
Cope_ has joined #ruby
tlazar has quit [Quit: leaving]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
<baweaver> either that or I should read into the lexer and see if I can add that into the tokenization
hdb2 has joined #ruby
guacamole has quit [Client Quit]
bijan_ has joined #ruby
gary__ has joined #ruby
cdg has joined #ruby
reber has joined #ruby
Cope_ has quit [Ping timeout: 255 seconds]
brewops has joined #ruby
hdb2 has quit [Ping timeout: 248 seconds]
brewops has left #ruby [#ruby]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
lesce has joined #ruby
gary__ has quit [Ping timeout: 264 seconds]
sidx64 has joined #ruby
vutral|kali has quit [Ping timeout: 265 seconds]
eckhardt has joined #ruby
bijan_ is now known as bijan_awaaaay
mtkd has joined #ruby
banisterfiend has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
cthulchu_ has joined #ruby
synthroid has quit [Remote host closed the connection]
n0m4d1c has quit [Remote host closed the connection]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
jenrzzz has quit [Ping timeout: 255 seconds]
ldnunes has quit [Quit: Leaving]
lesce has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sumobob has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.0.1]
darkhanb has joined #ruby
sammi`_ has joined #ruby
lesce has joined #ruby
hahuang65 has quit [Quit: WeeChat 2.0.1]
bmurt has joined #ruby
yorickpeterse has quit [Quit: WeeChat 2.0.1]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
bigblind has quit [Remote host closed the connection]
rwb has quit [Ping timeout: 256 seconds]
sammi` has quit [Quit: Lost terminal]
tvw has quit []
dionysus69 has quit [Ping timeout: 264 seconds]
cthulchu has quit [Ping timeout: 256 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
mistergibson has joined #ruby
AgentVenom has joined #ruby
eckhardt has joined #ruby
sanscoeu_ has joined #ruby
Cope has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
pastorinni has joined #ruby
workmad3 has joined #ruby
Cope is now known as Guest66532
lesce has quit [Quit: Textual IRC Client: www.textualapp.com]
ta_ has quit [Read error: Connection reset by peer]
sanscoeur has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
sundhell is now known as sundhell_away
despai has quit [Quit: ...]
cdg_ has joined #ruby
FrostCandy has quit []
Guest66532 has quit [Ping timeout: 268 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
sumobob has quit [Ping timeout: 256 seconds]
eckhardt_ has joined #ruby
lesce has joined #ruby
cdg has quit [Ping timeout: 264 seconds]
gary has joined #ruby
synthroid has joined #ruby
gary is now known as Guest97961
AndBobsYourUncle has joined #ruby
eckhardt has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
mikecmpbll has joined #ruby
riotjones has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
synthroid has quit [Client Quit]
willmichael has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
riotjones has quit [Remote host closed the connection]
willmichael has quit []
sameerynho has quit [Ping timeout: 268 seconds]
Guest97961 has quit [Ping timeout: 265 seconds]
banisterfiend has joined #ruby
workmad3 has joined #ruby
willmichael has joined #ruby
willmichael has quit [Client Quit]
willmichael has joined #ruby
willmichael has quit [Client Quit]
willmichael has joined #ruby
jeffreylevesque has joined #ruby
lesce has quit [Quit: Textual IRC Client: www.textualapp.com]
milardovich has quit [Ping timeout: 256 seconds]
jeffreylevesque_ has quit [Ping timeout: 255 seconds]
sumobob has joined #ruby
marxarelli is now known as marxarelli|afk
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tfitts has quit [Quit: Connection closed for inactivity]
lesce has joined #ruby
Cope_ has joined #ruby
garyserj has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
<garyserj> is it true that in ruby, a class is a constant, or is that rubbish? somebody told me that a class is a constant. I also found a book on google books that says "in ruby, a class is an object. The name of a class is a constant that points to an object"
jenrzzz_ has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
<apeiros> garyserj: a class is not a constant, it's an object. but almost all classes are referenced by a constant.
<apeiros> >> defined? Array
jenrzzz has quit [Ping timeout: 248 seconds]
<ruby[bot]> apeiros: # => "constant" (https://eval.in/959832)
<apeiros> >> Array.is_a?(Object)
<ruby[bot]> apeiros: # => true (https://eval.in/959833)
<apeiros> you're however not required to have a class be referenced by a constant:
<apeiros> >> my_foo = Class.new do def say_hi; "hi there!"; end; end; my_foo.new.say_hi
<ruby[bot]> apeiros: # => "hi there!" (https://eval.in/959834)
<apeiros> >> my_foo = Class.new do def say_hi; "hi there!"; end; end; my_foo.is_a?(Class)
<ruby[bot]> apeiros: # => true (https://eval.in/959835)
<apeiros> garyserj: does that answer your question?
<garyserj> i'll have to note down what you're saying and think about it, to fully understand it, but yes.
hahuang65 has joined #ruby
<garyserj> I can't see how a class can be a constant anyway so if you says it's not, that's fine!
<apeiros> constants are a type of variable
<apeiros> variables and objects don't mix. they are different categories of things.
<apeiros> variables reference objects. they themselves aren't objects.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> Constant, $global, @instance, @@class, local - those are the 5 types of variables ruby provides. all of them can reference objects.
<apeiros> however, you don't need variables to have objects. take this code: `"hello".upcase` - no variable in there. the string "hello" is called a literal, because it's literally in the code.
jenrzzz_ has quit [Ping timeout: 268 seconds]
<garyserj> is it possible that a class name is a constant?
jcalla has quit [Quit: Leaving]
<garyserj> i know you can't change a class name
<apeiros> colloquially speaking, yes. i.e. if you mean by that "using a constant to reference a class". most classes are that way, and the `class Foo` syntax only works that way.
<apeiros> being pedantic, I'd say the class name is a string, as that's what Class#name returns. and it may or may not be related to the constant used to reference the class.
timmow has quit [Ping timeout: 250 seconds]
<apeiros> e.g. `Array` is a constant referencing the core Array class.
<garyserj> apeiros: ok so that's the case with Ruby, is it the case with other languages like C# or Java?
<apeiros> other languages work differently.
<garyserj> 'cos i've never run into that in C# or Java.. it seems peculiar to Ruby.
<garyserj> ok
<apeiros> and I think neither in C# nor Java are classes objects
<garyserj> that's right
kapil___ has quit [Quit: Connection closed for inactivity]
<apeiros> classes being objects makes a lot of things pretty easy, though. it means you can pass them around like anything else.
<weaksauce> can you monkeypatch in those languages?
<apeiros> >> def create_instance(from_class); from_class.new; end; create_instance(Array)
<ruby[bot]> apeiros: # => [] (https://eval.in/959836)
<garyserj> is there any method I can call on Array that proves that Array is a constant referencing a class, and not the class itself?
<garyserj> or is there any method that I can pass Array to that proves that ARray is a constant referencing a class and not the class itself?
<apeiros> garyserj: objects do not know which variables reference them. if you think about it, that wouldn't make much sense.
jenrzzz has joined #ruby
<garyserj> okay so forget calling a method on Array to show it
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<apeiros> and it makes no sense either to query whether Array is a constant. you *know* from the code you've written.
<garyserj> but how about when passing Array to a method?
<garyserj> can the method show me that Array is a constant?
<apeiros> what makes sense is querying an object whether it is a class
<apeiros> >> Array.is_a?(Class)
<ruby[bot]> apeiros: # => true (https://eval.in/959837)
<apeiros> >> Array.class
<garyserj> yes I can accept that the object is a class
<ruby[bot]> apeiros: # => Class (https://eval.in/959838)
<garyserj> What I want is some proof in the language, that Array is a constant
timmow has joined #ruby
<apeiros> that makes no sense
<apeiros> it's a syntax rule that constants start with an uppercase letter.
<apeiros> so if you read/write code you *see* it. there's no point in asking the language.
<apeiros> >> defined? Array # you can still do that. but as said, it makes no sense in the context you're asking
<garyserj> is it a constant identifier?
<ruby[bot]> apeiros: # => "constant" (https://eval.in/959839)
<apeiros> 23:07 apeiros: constants are a type of variable
gary has joined #ruby
<garyserj> identifier is the general term. an identifier can be a constant or a variable.
<garyserj> in computer science anyway, afaik.
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
<apeiros> identifier is a vague term meaning wildly different things to different people.
gary is now known as Guest52142
<garyserj> can you give me an example? i've never heard it used differently to how i've known it to be used.
reber has quit [Remote host closed the connection]
morenoh149 has quit [Ping timeout: 240 seconds]
<apeiros> tell me what kinds of identifiers you know in ruby
<garyserj> I don't know ruby well enough but I could give you example in a language like c#
AndBobsYourUncle has quit [Ping timeout: 256 seconds]
<apeiros> so there it starts already…
<garyserj> what do you mean?
<garyserj> even compilers use the term identifier. like "unknown identifier".
jenrzzz has quit [Read error: Connection reset by peer]
<garyserj> which i think pascal would say.
<apeiros> ok. yes, constants are identifiers.
jenrzzz has joined #ruby
Guest52142 has quit [Ping timeout: 240 seconds]
<jeffreylevesque> is `make` a ruby command?
<WA9ACE> make a build tool
<WA9ACE> not specific to ruby
<WA9ACE> it's been around probably twice as long as ruby has
<jeffreylevesque> what do i need to install to have `make build`
<WA9ACE> what platform?
<jeffreylevesque> windows
<jeffreylevesque> but, i want to generalize it
<jeffreylevesque> so it can be run on linux too
<jeffreylevesque> i'm writing a script to install rancher-compose
jenrzzz has quit [Ping timeout: 256 seconds]
krawchyk has quit [Ping timeout: 264 seconds]
<garyserj> What is the difference between the object Array, and the object Array.new ?
<WA9ACE> sorry, last time I did Ruby on Windows that wasn't under the WSL it was absolute hell
<jeffreylevesque> ah ok i think linux already has `make`?
<jeffreylevesque> so, i just need a workaround for windows
<WA9ACE> jeffreylevesque it depends
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
<WA9ACE> some debian platforms you'll need to do `sudo apt install build-essentials` or similar
<garyserj> jeffreylevesque: cygwin would very likely have 'make'
<garyserj> but you'd need linux and maybe 'c' skills to use make.
<WA9ACE> with Fedora it's `sudo dnf groupinstall "C Development Tools and Libraries"
<garyserj> linux=linux skills
<apeiros> garyserj: Array is the class, Array.new is an instance of that class, an actual Array
<jeffreylevesque> if install cygwin, so i have to use a special shell terminal window to use the command?
<garyserj> jeffreylevesque: perhaps you won't have to. The vast majority of cygwin commands maybe all even, I can use from regular cmd
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<garyserj> jeffreylevesque: If they have an EXE extension they work outside of cygwin. Very few commands you can run from the cygwin shell don't have an EXE extension
<garyserj> for example ssh.exe can run from outside cygwin shell not just inside cygwin shell.. but a weird case, one of the view commands that only runs inside the cygwin shell and not outside of it, is ssh-copy-id which notably has no exe extension!
<garyserj> view=few
dogweather has joined #ruby
<jeffreylevesque> i'm installing cygwin
<garyserj> good move!
<jeffreylevesque> i hope that doesn't mean i have to run their special shell window
<garyserj> i told you it doesn't
<jeffreylevesque> oh ok
<jeffreylevesque> thanks!
<garyserj> but if you do you'll have access to bash.
<garyserj> of course, if you want to use their commands from cmd.exe then make sure c:\cygwin\bin and wherever it installs its commands, is in your path.
<garyserj> apeiros: So a class is an object, and an instance of a class is an object?
<apeiros> yupp
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> but classes are the only type of objects which can create instances. modules can have instances by proxy (via including them into a class, and instantiating that class)
bmurt has joined #ruby
jolamb has left #ruby ["WeeChat 1.9.1"]
jeffreylevesque has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bijan_awaaaay has quit [Quit: System has gone to sleep. ZZZzzz…]
dvdingus has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
goatish has joined #ruby
cthulchu_ has quit [Ping timeout: 256 seconds]
pastorinni has quit [Remote host closed the connection]
orbyt_ has joined #ruby
gary_ has joined #ruby
gary_ is now known as Guest17426
vutral|kali has quit [Ping timeout: 256 seconds]
cthulchu_ has joined #ruby
jnyw has joined #ruby
suhdood has joined #ruby
<garyserj> So can is there some objectid that I can see within the Array class name?
<garyserj> constants and variables, have a value, right?
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
<garyserj> and if that value is a reference to an object, then I want to see that reference.
Guest17426 has quit [Ping timeout: 260 seconds]
Psybur has joined #ruby
Psybur has joined #ruby
Psybur has quit [Changing host]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
desperek has quit [Quit: xoxo]
<garyserj> also.. so ok, a class is an object. and the name of a class is a constant. Is it true that the name of a class, is not an object? And is it true that a constant is not an object?
Cope_ has quit [Ping timeout: 256 seconds]
17SAAQ7S9 has quit [Ping timeout: 264 seconds]
ogres has quit [Quit: Connection closed for inactivity]
<dminuoso> garyserj: Names of classes are not constants
<dminuoso> garyserj: It's rather that a constant can hold an object (reference)
<dminuoso> class Foo; end; is roughtly equivalent to: Foo = Class.new
ecuanaso has joined #ruby
<dminuoso> Which means you can place a class object into anything.
<dminuoso> >> a = Class.new; p a
<ruby[bot]> dminuoso: # => #<Class:0x41741c24> ...check link for more (https://eval.in/959844)
<weaksauce> garyserj when you create a class with class Foo it's just running code to create an object that is the class template. you can attach methods to that class object with def or self.something. you can also call arbitrary code inside class(which is how rails works a lot of the magic.)
<dminuoso> garyserj: and constants are indeed not objects
<weaksauce> >> class Foo; puts "hello"; end
<ruby[bot]> weaksauce: # => hello ...check link for more (https://eval.in/959845)
<dminuoso> garyserj: As for the last question: Ruby maintains a constant table in each class/module object
<dminuoso> they are basically like instance variables
<dminuoso> but a bit more exposed
<dminuoso> weaksauce: you cant attack methods to objects.
<dminuoso> *attach
<weaksauce> sure you can. singleton methods
<dminuoso> weaksauce: they are still regular methods.
<dminuoso> weaksauce: it's just that the class they are defined on is a different one.
<dminuoso> def a.foo; ... end can basically be rewitten as: a.singleton_class.send(:define_method, :foo) { ... }
cdg_ has quit [Remote host closed the connection]
<dminuoso> weaksauce: Likewise `class <<` opens a singelton class for anything, and sets it as the default definee
<dminuoso> which is why
<dminuoso> class << a; def foo; end; end
cdg has joined #ruby
<dminuoso> and
<dminuoso> def a.foo; end;
<dminuoso> are the same thing
cthulchu_ has quit [Quit: Leaving]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
suhdood has quit [Remote host closed the connection]
cthulchu has joined #ruby
leitz has quit [Quit: Nappy time]
kapil___ has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
jeffreylevesque has joined #ruby
mtkd has quit []
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
sumobob has quit [Ping timeout: 240 seconds]
<garyserj> dminuoso: well if a class name isn't a constant then there's no mystery there 'cos ruby is the same as c# in that regard
<garyserj> so that's good
<dminuoso> garyserj: its just that the class builder syntax `class Foo; ...; end` only functions with constants (and it adds slightly different semantics than what I wrote).
<garyserj> apeiros did write "<apeiros> e.g. `Array` is a constant referencing the core Array class."
<dminuoso> garyserj: Yup. It lies inside Object.
<dminuoso> So Array is actually short for Object::Array
<dminuoso> (Since if you remember, constants reside in modules/classes. all of them)
<dminuoso> constants cant exist anywhere else.
duleja_ has joined #ruby
<garyserj> So is 'Array' a constant, or a Class?
<duleja_> hello
<dminuoso> It's foremost a constant.
<garyserj> So are you saying it's both?
<dminuoso> garyserj: Whether it actually is a class depends on whether someone was naughty and redefined it.
<garyserj> assuming they didn't redefine it then
<dminuoso> 00:12 garyserj | apeiros did write "<apeiros> e.g. `Array` is a constant referencing the core Array class."
<dminuoso> ^-
duleja_ has quit [Client Quit]
<garyserj> so it IS a constant
jenrzzz has quit [Ping timeout: 268 seconds]
<dminuoso> Array is a constant that references the core Array class.
moei has quit [Quit: Leaving...]
guest_ has joined #ruby
<dminuoso> But neither do classes have to be referred to constants, nor do all constants reference classes.
<guest_> hi
sanscoeu_ has quit [Remote host closed the connection]
<dminuoso> But neither do classes have to be referred to by constants, nor do all constants reference classes.
<dminuoso> Hi guest_.
<garyserj> If I say class Abc {......} Then is Abc a constant?
<guest_> hi dminuoso can i ask simple question about ruby here? I tried to post 2 minutes ago as different name though
zkv has quit [Ping timeout: 276 seconds]
vutral|kali has quit [Ping timeout: 240 seconds]
<dminuoso> guest_: Sure.
<guest_> i would like to know how can i use only strings when initializing objects ini ruby. So lets say i create a custom class and i want to pass only strings in the initialize method so if a fixnum is passed i do not want this object to be created
<dminuoso> garyserj: Yes.
<garyserj> dminuoso: and is Abc a class name?
<guest_> I am not sure how can i define what types initialize method will receive?
<dminuoso> garyserj: Abc becomes a constant inside Object that happens to refer to a newly created class object.
<dminuoso> guest_: And also Ruby baptizes the object, so that it happens to have the name :Abc
marxarelli|afk is now known as marxarelli
<dminuoso> * garyserj
sanscoeur has joined #ruby
<garyserj> dminuoso: OK but is Abc a class name if I do class Abc {}?
<dminuoso> garyserj: Ruby has no concept of class names.
sumobob has joined #ruby
<garyserj> So is it wrong to say Abc is the name of a class?
<dminuoso> garyserj: Depends on your perspective really.
<garyserj> if i've done class Abc { }
<dminuoso> garyserj: I dont like it because its technically irrelevant.
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
vutral|kali has joined #ruby
<garyserj> well, you said Names of classes are not constants.
<dminuoso> garyserj: Abs is a constant that refers to a class that identifies itself as :Abs
<guest_> thank you for the answer dminuoso but i am not sure that I am following you
<dminuoso> guest_: Dont mind me, misttabbed
<guest_> oh ok
<dminuoso> guest_: usually dont you dont inspect types in ruby because.. well reasons.
<guest_> yes i know
<guest_> that is why i am here :)
Cope has joined #ruby
safetypin has quit [Ping timeout: 265 seconds]
<dminuoso> 00:17 guest_ | I am not sure how can i define what types initialize method will receive?
<dminuoso> Welcome to singly typed languages.
Cope is now known as Guest14706
<dminuoso> There are some tricks you can do
Guest14706 has quit [Client Quit]
<guest_> i wanted to see if there is a way to do this? So to just limit constructor to use strings?
memo1 has quit [Ping timeout: 240 seconds]
<guest_> I would know how to do this in Java though...
<dminuoso> guest_: Like I said, Ruby is singly typed.
<guest_> yeah...
<dminuoso> Testing for string explicitly is kind of a lie since strictly speaking anyone can violate it by monkey patching String, or they can fit it by satisfying your interface.
RougeR has joined #ruby
<guest_> i follow you
<guest_> i just want to see if i can limit initialize to use certain types
<guest_> but it seems that in ruby you can't do this
<dminuoso> guest_: You can but its considered non idiomatic. Ruby folks are not big fans of types and decide to rigorously test type correctness in tests by testing every code path in their programs.
<guest_> you can check before initialize method i guess but I wanted to know if i can just do this check in the initialize method itself
<dminuoso> Or they forego tests and have brittle software.
<eam> guest_: you can do any check you like and raise ArgumentError
instrud has joined #ruby
<guest_> i just wish to check if lets say i do this User.new("something") that if "something" is not a string, do not create an object
<guest_> can i do this check in initialize method in User class?
<dminuoso> guest_: well you can simply raise an exception
<guest_> but object will be created? no?
<dminuoso> guest_: Yeah. you cant directly block the object creation though.
<dminuoso> guest_: yes because by the time initialize is called the object has already been constructed on the heap
<eam> you can raise before the object is returned to the caller
<dminuoso> though mmm
<guest_> hmmmmm
<eam> I suspect this is what he's really after
<dminuoso> oh yeah that should kill the object
<dminuoso> eam: what he's really after is a sound type system
<dminuoso> :P
<eam> well :D
chouhou__ has quit []
<guest_> sound type system?
<dminuoso> sorry
<dminuoso> *a type system
<eam> class Audio
<dminuoso> ;)
clemens3 has quit [Ping timeout: 248 seconds]
devil_tux has quit [Remote host closed the connection]
<guest_> i am not sure how i can forbid object from creating if type is not string
vutral|kali has quit [Ping timeout: 248 seconds]
<dminuoso> guest_: just throw in the initialize method
<guest_> can you give some example of initialize method in this case?
<dminuoso> and by throw I mean raise.
<dminuoso> but I guess in the end they are the same thing.
<eam> guest_: consider: def initialize(arg); raise unless arg.respond_to? :to_str
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> class ILoveEam; def to_str; raise "funny error"; end; end
<eam> or raise ArgumentError.new("arg must be stringy")
zkv has joined #ruby
gary has joined #ruby
<dminuoso> curiously no matter how much you restrict me - if need be Ill unpack fiddle to bypass all your checks!
eckhardt has joined #ruby
<dminuoso> eam: tell me
gary is now known as Guest62903
<guest_> eam
<eam> hey, input validation is a good idea limits notwithstanding
<dminuoso> does baweaver do puns in reallife too all day long?
<guest_> you rock sir
<eam> dminuoso: oh god yes
<dminuoso> eam: haha!
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam> guest_: a distinction here is using duck typing (has :to_str) vs class inheritance since it's more ruby-ish. You're concerned if the object knows how to become a String more than if the object is actually a String
shinnya has quit [Ping timeout: 256 seconds]
<guest_> why i just never thought to raise and exception?
<guest_> so simple...
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
milardovich has joined #ruby
karapetyan has quit [Remote host closed the connection]
<guest_> I wish you guys all best! thanks for this
<guest_> feeling shamed not to think something as easy as this by myself though... hah i must go to sleep
Guest62903 has quit [Ping timeout: 256 seconds]
* eam glances at the clock, can't sleep yet ...
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
milardovich has quit [Ping timeout: 256 seconds]
n008f4g_ has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby
<dminuoso> eam: Although one doesnt have to exclude the other.
karapetyan has joined #ruby
<dminuoso> If you test for .is_a? Enumerable, then thats a much stronger condition than testing for .responds_to? :each
<dminuoso> Because responding to .each but not being Enumerable has a high chance of being unlawful
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> Or doing somenthing really funky
snath has quit [Ping timeout: 256 seconds]
vutral|kali has joined #ruby
lytol has quit [Remote host closed the connection]
vutral|kali has quit [Changing host]
vutral|kali has joined #ruby
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
<eam> true - but that's a bit different since Enumerable is a mixin and likely to be used for iterators. Most objects which know how to become String aren't inherited from String
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
<eam> a time and a place for every approach I suppose
s3nd1v0g1us has joined #ruby
Psybur_ has joined #ruby
guest_ has quit [Quit: Page closed]
<eam> I suppose to_s vs to_str complicates things, I'm mostly thinking of allowing to_s in that case
xelkarin has joined #ruby
Psybur has quit [Ping timeout: 252 seconds]
konos5_ has quit [Quit: Connection closed for inactivity]
k0mpa has quit [Ping timeout: 255 seconds]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
eckhardt has joined #ruby
milardovich has joined #ruby
eckhardt_ has joined #ruby
s2013 has joined #ruby
spiette has quit [Remote host closed the connection]
eckhardt_ has quit [Client Quit]
s2013 has quit [Client Quit]
eckhardt has quit [Ping timeout: 256 seconds]
alex`` has quit [Quit: WeeChat 2.0.1]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
bijan_ has joined #ruby