havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: 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
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ahrs has joined #ruby
cadillac_ has quit [Ping timeout: 248 seconds]
cadillac_ has joined #ruby
marcux has joined #ruby
imode has joined #ruby
cagomez has quit [Remote host closed the connection]
Zimsky has joined #ruby
bruno- has joined #ruby
jinie_ has joined #ruby
cdg has joined #ruby
shinnya has joined #ruby
imode has quit [Quit: WeeChat 1.9.1]
cdg has quit [Ping timeout: 248 seconds]
webnanners has quit [Ping timeout: 258 seconds]
ecksit has quit [Quit: Textual IRC Client: www.textualapp.com]
webnanners has joined #ruby
pr0ton has quit [Quit: pr0ton]
mim1k has joined #ruby
<ycyclist> Any flexmock people out there?
mim1k has quit [Ping timeout: 248 seconds]
lagweezle is now known as lagweezle_away
Alina-malina has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
zachk has quit [Quit: Leaving]
Cohedrin_ has joined #ruby
milardovich has quit [Remote host closed the connection]
jphase has quit [Ping timeout: 258 seconds]
milardovich has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
Cohedri__ has joined #ruby
AnoHito has quit [Quit: Leaving]
marr has quit [Ping timeout: 248 seconds]
Cohedrin_ has quit [Ping timeout: 258 seconds]
milardovich has quit [Ping timeout: 258 seconds]
<RickHull> ycyclist: just curious, are you wedded to flexmock? it looks unmaintained (RIP Jim)
<ycyclist> Yes, I know. I am somewhat wedded, but the problem is known at large. Thank you.
<ycyclist> Interestingly, I got the case to work, but what I am stuck on now is a more general problem.
<RickHull> what's the problem?
<ycyclist> I need to re-initialize the require step that is presently happening at the top of the file, inside each of several flexmock blocks where I am stubbing Socket.gethostname I can set a different value.
<ycyclist> By the way, just a second and I'll post the code I got to work:
<ycyclist> Sorry for the dump, but:
<ycyclist> flexmock(Socket,:strict,Socket => :gethostname, :gethostname => "myhostname") do hostname = Socket.gethostname assert_equal("myhostname", hostname, "Could not get the hostname")
<RickHull> hm, right off the bat, it is a smell that require would have "significant" side effects
<ycyclist> Then do your other stuff of course.
<RickHull> require should just load code
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedri__ has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 240 seconds]
<ycyclist> But as you can see, what I really need is to require the stuff all over again so that the stub gets used.
<ycyclist> I think a second require sees the first and says "naa"
CPngN has quit [Quit: The system is going down for reboot NOW!]
<RickHull> yes, require returns true the first time
<RickHull> and returns false the second, very quickly
<ycyclist> There must be a way, especially for things like testing, to force a re-require.
<RickHull> there is, but I am pretty sure you are barking up the wrong tree
<RickHull> can you please paste using http://gist.github.com/
<RickHull> e.g. the first N lines of your test script
<ycyclist> I can paste critical lines. Just a minute:
<RickHull> omit or mask any sensitive info of course
Cohedrin_ has joined #ruby
<RickHull> ok, it looks like you have an antipattern
<RickHull> whereby you are doing side-effect-laden stuff at requiretime
<RickHull> can you paste some of the contents of `icanttellyouthat.rb` ?
<ycyclist> No. Not allowed.
<RickHull> fair enough. can you explain the effects of that require statement?
conta has joined #ruby
<ycyclist> It's got a module and a class, no constants except the module and class names
<RickHull> anything else besides method definitions?
<ycyclist> We require the class to the test script and then go through all the methods and test them. We often can get away with testin things without mocks, but this one would be really helpful.
<ycyclist> It's a Singleton.
<ycyclist> Which makes it a little wierder.
<RickHull> singletons are antipatterns, generally
<ycyclist> We do Thingy.method1
<ycyclist> Yes, well I cannot redesign the system. I can only help make it less bad.
<RickHull> understood :)
<ycyclist> But I agree.
<RickHull> so, are there any effects at requiretime besides loading classes/modules and their contained methods?
<RickHull> are any methods called or other code executed?
<ycyclist> This is a fairly simple test. Is Ruby seriously averse to reloading inside a block and ignoring what was there before?
<ycyclist> I have done a lot of ruby, but not that.
nankyokusei has joined #ruby
<RickHull> ycyclist: I strongly recommend looking up what `load` does
<RickHull> er, not looking up
<ycyclist> There are internal methods, but these are all Class methods, no instance available except to the extent that a Class is an object anyway.
<RickHull> even with a singleton, there is a good way and a bad way to proceed
<RickHull> ycyclist: where does Thingy.method1 happen?
<ycyclist> Well, I am after constructive criticism, and appreciate any you have.
Cohedrin_ has quit [Read error: Connection reset by peer]
<RickHull> i personally guarantee any criticism from me will be 100% constructive :)
<ycyclist> Thingy.method1 calls Socket.gethostname. It is defined inside MOD::Thingy. Pretty simple class really.
mniip has quit [Ping timeout: 600 seconds]
<RickHull> who calls Thingy.method1 ?
<ycyclist> Oh, it's a general utility, called all over the framework.
<RickHull> for example, I could define Thingy and method1, and then after the module/class definition, I could call it
<RickHull> in the same file
<RickHull> i.e. executable code at the toplevel
<RickHull> it will be executed at requiretime. or a constant assignment can call methods
<RickHull> that will be executed at requiretime
nankyok__ has quit [Ping timeout: 258 seconds]
<RickHull> I am interested, what happens at requiretime?
<RickHull> why would you be tempted to require a 2nd time?
<ycyclist> Yes, I want to require many times, in many different tests. Many is probably 2, but it is at least 2.
<RickHull> why? for what effect?
<ycyclist> Sometimes we get ip addresses back from Socket.gethostname. We want to handle that well.
Cohedrin_ has joined #ruby
<RickHull> argh, I am not making myself clear
<RickHull> if you do require 'blahblah', what state is changing in your program?
<RickHull> if I do require 'yaml', then I expect the YAML module to be available
<RickHull> I expect code declarations to be made, but no imperative code will be executed for "setup"
<ycyclist> The state that changes is I want the stubbed Socket.gethostname to be in effect when I re-load so that Thingy.method1, which uses it, will use the stub instead of the original.
<RickHull> ah, this is somewhat clearer
<ycyclist> Right now, we stub Socket.gethostname, but because the stubbing happens after the definition of Thingy.method1, method1 just uses the original defintion of Socket.gethostname.
tcopeland has joined #ruby
<ycyclist> Seems like this is a typical case for stubbing, except for the stinker of the fact that it's a Singleton and a class, not an instance object.
<ycyclist> But I got that part kindof fixed, except, I cannot pass an instance to the thing, I need to have it defined when the module definition occurs.
<ycyclist> All sorts of externalities could be moralized on here, but we're all human, and I like humans, so I'm working with it.
<RickHull> you can play with Kernel.load but it's a huge terrible smell
<ycyclist> Ok. That will be my starting point tomorrow. I fear right now my wife wants me to go home.
<ycyclist> BTW, thank you, this is very helpful.
<RickHull> it's like require except it happily reloads and requires the actual filename
<RickHull> it will throw a bunch of warnings for constant redefinitions
<ycyclist> yes, and I may find there are immutables buried in there. We'll see.
<RickHull> calling Socket stuff directly inside a singleton is a recipe for a testing headache
bronson has joined #ruby
<ycyclist> I will try to get back to you tomorrow about my results.
<RickHull> I have written tons of tests but nothing successfully with mocks or stubs; testability informs my program design
<ycyclist> Yes, but they're humans. Nice, decent-minded humans as near as I can tell.
enterprisey has joined #ruby
troys is now known as troys_
<ycyclist> Yes. I have always tried to avoid them if possible, but sometimes stubbing and mocking are good answers.
<RickHull> for sure, I wish I had better guidance here but I've avoided these problems somehow; I love your attitude though :)
<ycyclist> I'm already breaking down Thingy's insides to check on its pieces, so I have it pretty well covered, but we want this too, and we will probably use it for future exigencies.
<ycyclist> I suspect it's a good idea. I am really looking forward to migrating to minitest though. It is so much nicer.
<RickHull> <3 minitest
<RickHull> here is my best guess for your situation:
<ycyclist> He, gotta go man. I will post results as soon as I squeeze'm out.
<ycyclist> O...
<RickHull> 1. i think to mock successfully, you have to mock before require
<RickHull> 2. therefore, you may need to split out stuff that needs to be mocked (calls to Socket, etc)
<ycyclist> Still here.
coderphive has quit [Quit: coderphive]
<ycyclist> Yes, that is parallel to my guesses too.
<RickHull> i.e. stop requiring at the top
bronson has quit [Ping timeout: 240 seconds]
<RickHull> you may not need to split out your lib/source stuff
<RickHull> but in the test script, just do your mocks first, then your requires
<RickHull> however, there are some situations where you need to require some stuff before the mocks
<RickHull> and thats where you may need to consider splitting out the lib/source functionality
amirite has joined #ruby
<RickHull> i.e. split canttellyou.rb to canttellyou-core.rb and canttellyou-mocks.rb
<RickHull> and your test script requires canttellyou-core
<RickHull> at the top
<RickHull> and canttellyou-mocks after the mocks
d^sh has quit [Ping timeout: 258 seconds]
d^sh has joined #ruby
paradisaeidae_ has joined #ruby
paradisaeidae has joined #ruby
<RickHull> all that said, I am just making an educated guess. I don't know mocks and stubs very well
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
ycyclist has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby
tamouse__ has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.93 [Firefox 55.0.3/20170824123605]]
paradisaeidae_ has quit [Quit: ChatZilla 0.9.93 [Firefox 55.0.3/20170824123605]]
marcux has quit [Ping timeout: 260 seconds]
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
tcopeland has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
ineb has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
tamouse__ has quit [Ping timeout: 240 seconds]
Guest97372 has quit [Ping timeout: 246 seconds]
greenbagels has quit [Read error: Connection reset by peer]
theunraveler has joined #ruby
greenbagels has joined #ruby
tcopeland has joined #ruby
cagomez has quit [Remote host closed the connection]
oetjenj_ has quit [Remote host closed the connection]
oetjenj has joined #ruby
enterprisey has quit [Remote host closed the connection]
enterprisey has joined #ruby
pr0ton has joined #ruby
oetjenj has quit [Remote host closed the connection]
milardovich has joined #ruby
oetjenj has joined #ruby
amirite has quit [Ping timeout: 260 seconds]
gizmore|2 has joined #ruby
alnet has joined #ruby
enterprisey has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 258 seconds]
enterprisey has joined #ruby
gizmore has quit [Ping timeout: 248 seconds]
Alina-malina has joined #ruby
smelnicki has joined #ruby
conta has quit [Ping timeout: 240 seconds]
enko has quit [Quit: Textual IRC Client: www.textualapp.com]
enterprisey has quit [Remote host closed the connection]
orbyt_ has joined #ruby
enterprisey has joined #ruby
marxarelli is now known as marxarelli|afk
MrBismuth has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
MrBusiness has quit [Ping timeout: 258 seconds]
imode has joined #ruby
enterprisey has quit [Remote host closed the connection]
enterprisey has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
enterprisey has joined #ruby
mim1k has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
tamouse__ has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
DTZUZO has joined #ruby
mim1k has quit [Ping timeout: 258 seconds]
hinbody has joined #ruby
uneeb has joined #ruby
adlerdias has joined #ruby
mjolnird has quit [Quit: Leaving]
Ropeney has joined #ruby
DTZUZO has quit [Ping timeout: 260 seconds]
paradisaeidae_ has quit [Quit: ChatZilla 0.9.93 [Firefox 55.0.3/20170824123605]]
paradisaeidae has quit [Quit: ChatZilla 0.9.93 [Firefox 55.0.3/20170824123605]]
jphase has joined #ruby
milardovich has quit [Remote host closed the connection]
coderphive has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
imode has quit [Quit: WeeChat 1.9.1]
jphase has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jrafanie has joined #ruby
Emmanuel_Chanel has joined #ruby
imode has joined #ruby
jrafanie has quit [Client Quit]
webnanners has quit [Ping timeout: 248 seconds]
Alina-malina has quit [Ping timeout: 258 seconds]
webnanners has joined #ruby
milardovich has joined #ruby
Alina-malina has joined #ruby
NightMonkey has quit [Quit: ZNC - http://znc.in]
bmurt has joined #ruby
ramfjord has joined #ruby
NightMonkey has joined #ruby
s3nd1v0g1us has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
Iambchop has joined #ruby
uneeb has quit [Read error: Connection reset by peer]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enterprisey has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 240 seconds]
webnanners has quit [Ping timeout: 260 seconds]
tamouse__ has quit [Ping timeout: 258 seconds]
Alina-malina has joined #ruby
DTZUZO has joined #ruby
webnanners has joined #ruby
theunraveler has quit []
coderphive has quit [Quit: coderphive]
webnanners has quit [Ping timeout: 248 seconds]
pr0ton has quit [Quit: pr0ton]
webnanners has joined #ruby
xuanrui has joined #ruby
lxleuser has joined #ruby
bronson has joined #ruby
lxleuser is now known as fred_flintstone
fred_flintstone is now known as freddy_flintston
<freddy_flintston> Folks
milardovich has quit [Remote host closed the connection]
<freddy_flintston> Who can recommend resources for machine learning in Ruby?
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
webnanners has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 248 seconds]
greenbagels has quit [Read error: Connection reset by peer]
webnanners has joined #ruby
gix has quit [Ping timeout: 258 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freddy_flintston has quit [Quit: ChatZilla 0.9.93 [SeaMonkey 2.48/20170706221156]]
Alina-malina has quit [Ping timeout: 240 seconds]
gix has joined #ruby
webnanners has quit [Ping timeout: 258 seconds]
Alina-malina has joined #ruby
webnanners has joined #ruby
pr0ton has joined #ruby
clamstar has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
greenbagels has joined #ruby
shinnya has quit [Ping timeout: 248 seconds]
enterprisey has joined #ruby
Guest80310 has quit [Ping timeout: 255 seconds]
hahuang65 has quit [Client Quit]
orbyt_ has joined #ruby
maxmanders has joined #ruby
maxmanders is now known as Guest7509
jenrzzz has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
orbyt_ has quit [Client Quit]
jenrzzz has quit [Ping timeout: 240 seconds]
nowhereman has quit [Remote host closed the connection]
nowhereman has joined #ruby
Guest22108 has quit [Excess Flood]
Map has joined #ruby
Map is now known as Guest60541
clamstar has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
hyperreal has left #ruby ["WeeChat 1.9.1"]
hahuang65 has joined #ruby
hahuang65 has quit [Client Quit]
rfoust has joined #ruby
tamouse__ has joined #ruby
hahuang65 has joined #ruby
Pisuke has quit [Read error: No route to host]
chriscarpenter12 has quit [Read error: No route to host]
Pisuke has joined #ruby
alnet has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
pr0ton has quit [Quit: pr0ton]
nicolai86 has quit [Remote host closed the connection]
ta has quit [Read error: Connection reset by peer]
hs366 has quit [Read error: Connection reset by peer]
cdg has joined #ruby
ta has joined #ruby
hs366 has joined #ruby
Psy-Q has quit [Ping timeout: 252 seconds]
yokel has quit [Ping timeout: 240 seconds]
GGMethos has quit [Ping timeout: 252 seconds]
Ober has quit [Ping timeout: 248 seconds]
SpComb has quit [Ping timeout: 240 seconds]
Psy-Q has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
GGMethos has joined #ruby
yokel has joined #ruby
mim1k has joined #ruby
SpComb has joined #ruby
akkad has joined #ruby
mim1k has quit [Ping timeout: 264 seconds]
alnet has joined #ruby
pilne has quit [Quit: Quitting!]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s3nd1v0g1us has quit [Quit: tempusfugit]
xuanrui has quit [Remote host closed the connection]
jenrzzz has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
mim1k has joined #ruby
jphase has joined #ruby
mim1k has quit [Ping timeout: 258 seconds]
emulator3 has quit [Ping timeout: 248 seconds]
xuanrui has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
troys_ is now known as troys
Alina-malina has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
jphase has quit [Remote host closed the connection]
jamesaxl has quit [Read error: Connection reset by peer]
jphase has joined #ruby
Alina-malina has joined #ruby
jamesaxl has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
ta has quit [Remote host closed the connection]
conta has joined #ruby
ramfjord has joined #ruby
yosafbridge has quit [Quit: Leaving]
pr0ton has joined #ruby
yosafbridge has joined #ruby
bronson has joined #ruby
jenrzzz has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
xuanrui has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 260 seconds]
xuanrui has joined #ruby
sspreitz has quit [Ping timeout: 240 seconds]
sspreitz has joined #ruby
nicolai86 has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
akkad has quit [Remote host closed the connection]
akkad has joined #ruby
voiceftp has quit [Ping timeout: 264 seconds]
kriskropd has quit [Ping timeout: 240 seconds]
ta has joined #ruby
ur5us has quit [Remote host closed the connection]
voiceftp has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
aufi has joined #ruby
minimalism has quit [Quit: minimalism]
ta has quit [Ping timeout: 258 seconds]
emulator3 has joined #ruby
alex`` has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 255 seconds]
aupadhye has joined #ruby
Alina-malina has quit [Ping timeout: 248 seconds]
kriskropd has joined #ruby
Alina-malina has joined #ruby
Ropeney has quit [Read error: Connection reset by peer]
nfsnobody has quit [Read error: Connection reset by peer]
Ropeney has joined #ruby
dminuoso_ has joined #ruby
Bock has joined #ruby
Bock has quit [Max SendQ exceeded]
Bock has joined #ruby
Bock has quit [Max SendQ exceeded]
Bock has joined #ruby
Bock has quit [Max SendQ exceeded]
ResidentBiscuit has quit [Ping timeout: 258 seconds]
nfsnobody has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bock has joined #ruby
smelnicki has quit [Remote host closed the connection]
nocaberi has joined #ruby
nfsnobody has quit [Changing host]
nfsnobody has joined #ruby
Bock has quit [Ping timeout: 258 seconds]
nocaberi is now known as Bock
paranoicsan has joined #ruby
Guest86958 is now known as ndrst
ndrst has quit [Changing host]
ndrst has joined #ruby
milardovich has joined #ruby
AnoHito has joined #ruby
milardovich has quit [Client Quit]
alfiemax_ has quit [Remote host closed the connection]
Cohedrin_ has joined #ruby
troys has quit [Quit: Bye]
brent__ has quit [Quit: Connection closed for inactivity]
anisha has joined #ruby
dminuoso_ has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
blackmesa has joined #ruby
guardianx has joined #ruby
ana_ has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
mjolnird has joined #ruby
guardianx has quit []
rabajaj has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 258 seconds]
quobo has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
ta has joined #ruby
dminuoso_ has joined #ruby
Vap0r1ze has joined #ruby
roshanavand has joined #ruby
r7c has joined #ruby
milardovich has joined #ruby
<Vap0r1ze> How do I define class methods, where the name of the method is based on a variable string
uneeb has joined #ruby
dminuoso_ has quit [Ping timeout: 248 seconds]
<RickHull> define_method() I think
<Ropeney> `define_method 'string' do`
<gr33n7007h> define_singleton_method for class methods.
Dimik has quit [Ping timeout: 258 seconds]
postmodern has quit [Quit: Leaving]
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
mark_66 has joined #ruby
biberu has joined #ruby
alex`` has joined #ruby
dminuoso_ has joined #ruby
phaul has joined #ruby
bronson has joined #ruby
blackmesa has joined #ruby
<Vap0r1ze> thanks guys it worke
conta has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
<gr33n7007h> cool beans :)
mathys has joined #ruby
dminuoso_ has quit [Ping timeout: 258 seconds]
RickHull has quit [Quit: Page closed]
milardovich has quit []
amirite has joined #ruby
dminuoso_ has joined #ruby
amirite has quit [Remote host closed the connection]
fyrril2 has joined #ruby
jaruga has joined #ruby
charliesome has joined #ruby
fyrril has quit [Ping timeout: 246 seconds]
PaulePanter has joined #ruby
imode has quit [Ping timeout: 264 seconds]
charliesome has quit [Ping timeout: 255 seconds]
ramfjord has joined #ruby
paranoicsan is now known as paranoicsan[Away
bastilian_ has quit [Quit: bastilian_]
bastilian_ has joined #ruby
oded has joined #ruby
lel has quit [Ping timeout: 240 seconds]
Bock has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
Defenestrate has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
charliesome has joined #ruby
shime has joined #ruby
Burgestrand has joined #ruby
ts_ has joined #ruby
uneeb has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
charliesome has quit [Ping timeout: 255 seconds]
dminuoso_ has quit [Ping timeout: 255 seconds]
Silthias has quit [Read error: Connection reset by peer]
jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
paranoicsan[Away is now known as paranoicsan
ramfjord has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
Mortomes|Work has joined #ruby
Bock has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
lel has joined #ruby
sysvalve has joined #ruby
phaul has joined #ruby
Silthias has joined #ruby
jinie has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 240 seconds]
nowhereman has quit [Read error: Connection reset by peer]
nowhereman has joined #ruby
jinie has joined #ruby
charliesome has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
bruno- has joined #ruby
cdg has joined #ruby
mikecmpbll has joined #ruby
foxxx0 has quit [Quit: WeeChat 1.9.1]
milardovich has joined #ruby
charliesome has quit [Ping timeout: 255 seconds]
cdg has quit [Ping timeout: 258 seconds]
milardovich has quit [Client Quit]
conta has joined #ruby
foxxx0 has joined #ruby
nahra has quit [Remote host closed the connection]
cadillac_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
dionysus69 has joined #ruby
Burgestrand has quit [Quit: Closing time!]
jameser has joined #ruby
Burgestrand has joined #ruby
mim1k has joined #ruby
ramfjord has joined #ruby
Vap0r1ze has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
marr has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
Beams has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
milardovich has joined #ruby
claudiuinberlin has joined #ruby
Burgestrand has joined #ruby
paranoicsan is now known as paranoicsan[Away
milardovich has quit [Client Quit]
paranoicsan[Away is now known as paranoicsan
blackmesa has quit [Remote host closed the connection]
claudiuinberlin has quit [Client Quit]
infernix has joined #ruby
claudiuinberlin has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
Burgestrand has quit [Quit: Closing time!]
adlerdias has quit [Quit: adlerdias]
charliesome has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
roshanavand has quit [Quit: Leaving]
bronson has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elsevero has joined #ruby
dminuoso_ has joined #ruby
claudiuinberlin has joined #ruby
infernix has quit [Read error: Connection reset by peer]
Defenestrate has quit [Quit: This computer has gone to sleep]
Burgestrand has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
elsevero_ has joined #ruby
pavan has joined #ruby
<pavan> Hi
elsevero has quit [Ping timeout: 240 seconds]
elsevero_ is now known as elsevero
<pavan> <XMLRPC::FaultException: XMLRPC::FaultException> getting Error
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nicolai86 has quit [Remote host closed the connection]
workmad3 has joined #ruby
bruno- has joined #ruby
Defenestrate has joined #ruby
<TheBrayn> pavan: You'll need to provide more information than that
mtkd has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno-_ has joined #ruby
uZiel has joined #ruby
jphase has joined #ruby
bauruine has quit [Quit: ZNC - http://znc.in]
bruno- has quit [Ping timeout: 248 seconds]
bauruine has joined #ruby
roshanavand has joined #ruby
Serpent7776 has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
Defenestrate has quit [Quit: Leaving]
infernix has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
oded has quit [Quit: Konversation terminated!]
GodFather has joined #ruby
mniip has joined #ruby
acalycine has joined #ruby
acalycine has quit [Client Quit]
kapil___ has joined #ruby
emulator4 has joined #ruby
ur5us has quit [Remote host closed the connection]
nicolai86 has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
acalycine has joined #ruby
jenrzzz has joined #ruby
snickers has joined #ruby
emulator3 has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
ur5us has joined #ruby
nankyoku_ has joined #ruby
nankyok__ has joined #ruby
GodFather has joined #ruby
ts_ has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
gregf_ has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
nankyoku_ has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
Defenestrate has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
elsevero_ has joined #ruby
elsevero has quit [Ping timeout: 258 seconds]
elsevero_ is now known as elsevero
ramfjord has joined #ruby
rikkipitt has joined #ruby
acalycine has quit [Quit: bye]
ramfjord has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dminuoso_ has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Client Quit]
Siyfion has joined #ruby
huyderman has quit [Ping timeout: 240 seconds]
dminuoso_ has joined #ruby
Burgestrand has quit [Quit: Closing time!]
adlerdias has joined #ruby
Burgestrand has joined #ruby
SURAJIT has joined #ruby
rgr has joined #ruby
SURAJIT has quit [Quit: Leaving]
rikkipitt has quit [Quit: Leaving...]
jenrzzz has quit [Ping timeout: 248 seconds]
mathys has quit [Remote host closed the connection]
mathys has joined #ruby
huyderman has joined #ruby
mathys_ has joined #ruby
dminuoso_ has quit [Ping timeout: 258 seconds]
mathys has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
nahra has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
Mortomes|Work has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
apparition has joined #ruby
cagomez has quit [Ping timeout: 264 seconds]
cdg has joined #ruby
mr_foto has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
bronson has joined #ruby
guille-moe has joined #ruby
sepp2k has joined #ruby
cagomez has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
apparition has quit [Ping timeout: 258 seconds]
bruno-_ has quit [Ping timeout: 248 seconds]
cagomez has quit [Ping timeout: 255 seconds]
halt has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
alnet has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
paranoicsan is now known as paranoicsan[Away
fmcgeough has joined #ruby
ldnunes has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zautomata has joined #ruby
tvw has joined #ruby
Burgestrand has quit [Quit: Closing time!]
dminuoso_ has joined #ruby
shinnya has joined #ruby
bruno- has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
jphase has joined #ruby
fmcgeough has quit [Read error: Connection reset by peer]
fmcgeough has joined #ruby
jphase has quit [Remote host closed the connection]
halt has joined #ruby
naprimer has quit [Read error: Connection reset by peer]
ldnunes has quit [Read error: Connection reset by peer]
Heph_ has joined #ruby
ldnunes has joined #ruby
gnufied has joined #ruby
ramfjord has joined #ruby
dminuoso_ has quit [Ping timeout: 240 seconds]
dminuoso_ has joined #ruby
alnet has joined #ruby
mr_foto has quit []
ramfjord has quit [Ping timeout: 248 seconds]
mr_foto has joined #ruby
marr has quit [Ping timeout: 248 seconds]
rgr_ has joined #ruby
rgr has quit [Remote host closed the connection]
Burgestrand has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
mathys_ has quit [Quit: Leaving]
mathys has joined #ruby
ts_ has joined #ruby
huyderman has quit [Ping timeout: 260 seconds]
dminuoso_ has quit [Ping timeout: 264 seconds]
gnufied has quit [Ping timeout: 246 seconds]
huyderman has joined #ruby
pavan has left #ruby [#ruby]
tcopeland has quit [Quit: tcopeland]
tcopeland has joined #ruby
tsglove has joined #ruby
coderphive has joined #ruby
aclark has quit [Remote host closed the connection]
aclark has joined #ruby
truenito has joined #ruby
nankyokusei has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
truenito has quit [Ping timeout: 248 seconds]
nankyok__ has quit [Ping timeout: 264 seconds]
Burgestrand has quit [Quit: Closing time!]
Guest60541 has quit [Excess Flood]
ShalokShalom_ has joined #ruby
Map has joined #ruby
Map is now known as Guest30919
vasilakisfil has joined #ruby
anisha has quit [Ping timeout: 264 seconds]
Burgestrand has joined #ruby
ShalokShalom has quit [Ping timeout: 248 seconds]
<vasilakisfil> hey folks! I am wondering, doesn anyone know why self.private_method= doesn't raise an error bug self.private_method does? (snippet: https://gist.github.com/vasilakisfil/7eb19688f3861d9e1b54437c47c60f07 )
ts_ has quit [Ping timeout: 246 seconds]
<matthewd> vasilakisfil: It's a special case, because private_method= without the self. wouldn't do the right thing
alnet has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
coderphive has quit [Quit: coderphive]
andikr has quit [Remote host closed the connection]
<vasilakisfil> interesting thanks!
tcopeland has quit [Quit: tcopeland]
<vasilakisfil> but that's inconsistend a bit. In any case, I would really like it if ruby could extend this special case to the self.foobar as well, so that we can access private accessor from inside our class seamlessly (in case we use a local variable of the same name)
GodFather has joined #ruby
John___ has joined #ruby
coderphive has joined #ruby
<matthewd> Matz recommends `foobar()` for that
ts_ has joined #ruby
<matthewd> But yeah, I agree it'd be more consistent to special-case self. entirely
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has joined #ruby
ts_ has quit [Read error: Connection reset by peer]
coderphive has quit [Client Quit]
<vasilakisfil> ok
soahccc has quit [Quit: Cya]
Ropeney has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby
ts_ has joined #ruby
ts_ has quit [Max SendQ exceeded]
motstgo has quit [Ping timeout: 248 seconds]
swills has quit [Ping timeout: 248 seconds]
anisha has joined #ruby
paranoicsan[Away is now known as paranoicsan
ts_ has joined #ruby
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away is now known as paranoicsan
ts_ has quit [Read error: Connection reset by peer]
InfinityFye has joined #ruby
mson has joined #ruby
__Yiota has joined #ruby
workmad3 has joined #ruby
__Yiota has quit [Client Quit]
__Yiota has joined #ruby
dminuoso_ has joined #ruby
swills has joined #ruby
swills has joined #ruby
claudiuinberlin has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
bronson has joined #ruby
cagmz has joined #ruby
cagmz_ has quit [Ping timeout: 258 seconds]
cagmez__ has joined #ruby
dminuoso_ has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Client Quit]
bronson has quit [Ping timeout: 260 seconds]
cagmz has quit [Ping timeout: 258 seconds]
claudiuinberlin has joined #ruby
ramfjord has joined #ruby
aclark has quit [Remote host closed the connection]
alex`` has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
jphase has joined #ruby
rfoust has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rwb has quit [Ping timeout: 240 seconds]
hs366 has quit [Quit: Leaving]
mr_foto has quit [Remote host closed the connection]
Vivekananda has quit [Ping timeout: 248 seconds]
alnet has joined #ruby
headius has joined #ruby
DLSteve has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
jottr has joined #ruby
ramfjord has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 255 seconds]
mr_foto has joined #ruby
emulator4 has quit [Ping timeout: 258 seconds]
mim1k has joined #ruby
Burgestrand has quit [Quit: Closing time!]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
jrafanie has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
yeticry has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
jottr has joined #ruby
simmaniac has joined #ruby
ShalokShalom_ has quit [Quit: No Ping reply in 180 seconds.]
mr_foto has quit []
bmurt has joined #ruby
ShalokShalom has joined #ruby
snickers has quit [Ping timeout: 246 seconds]
sysvalve has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soahccc has joined #ruby
__Yiota has joined #ruby
ta has quit [Remote host closed the connection]
Defenestrate has quit [Quit: This computer has gone to sleep]
__Yiota has quit [Client Quit]
neuraload has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kassav_ has joined #ruby
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
ResidentBiscuit has joined #ruby
alnet has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bmurt has joined #ruby
jrafanie has joined #ruby
cdg has joined #ruby
ana__ has joined #ruby
tcopeland has joined #ruby
ana_ has quit [Ping timeout: 240 seconds]
xuanrui has quit [Quit: Leaving]
ramfjord has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
poofjavelin has joined #ruby
mim1k has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kus_ubuntui686 has joined #ruby
kus_ubuntui686 has quit [Max SendQ exceeded]
minimalism has joined #ruby
dionysus69 has quit [Remote host closed the connection]
aupadhye has quit [Quit: Leaving]
charliesome has joined #ruby
elsevero has quit [Ping timeout: 255 seconds]
jrafanie has joined #ruby
jhg has joined #ruby
jhg has left #ruby [#ruby]
Rapture has joined #ruby
claudiuinberlin has joined #ruby
jrafanie has quit [Client Quit]
dionysus69 has joined #ruby
jrafanie has joined #ruby
__Yiota has joined #ruby
jottr_ has joined #ruby
Alina-malina has quit [Ping timeout: 246 seconds]
jrafanie has quit [Client Quit]
dionysus69 has quit [Remote host closed the connection]
bmurt has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 260 seconds]
anisha has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
dionysus69 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
motstgo has joined #ruby
jrafanie has joined #ruby
bmurt has quit [Client Quit]
gr33n7007h has quit [Ping timeout: 240 seconds]
Guest7509 has quit [Ping timeout: 248 seconds]
chouhoulis has quit [Remote host closed the connection]
maxmanders has joined #ruby
uZiel has joined #ruby
blackmesa has joined #ruby
dminuoso_ has joined #ruby
anisha has joined #ruby
wattt has joined #ruby
wattt is now known as thomasv314
clamstar has quit [Ping timeout: 248 seconds]
Genya has quit [Ping timeout: 246 seconds]
jottr_ has quit [Ping timeout: 255 seconds]
devilsadvocate has quit [Ping timeout: 246 seconds]
jaruga has quit [Quit: jaruga]
jottr_ has joined #ruby
clamstar has joined #ruby
kitallis has joined #ruby
audy has quit [Ping timeout: 240 seconds]
dminuoso_ has quit [Remote host closed the connection]
orbyt_ has joined #ruby
Genya has joined #ruby
Silthias1 has joined #ruby
neuraload has quit [Quit: This computer has gone to sleep]
Silthias has quit [Ping timeout: 246 seconds]
bmurt has joined #ruby
TheMoonMaster has quit [Ping timeout: 240 seconds]
oleo has quit [Quit: Leaving]
audy has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
BlkDynmt has joined #ruby
maxmanders has quit [Ping timeout: 248 seconds]
anisha has quit [Ping timeout: 248 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TheMoonMaster has joined #ruby
sirecote has quit [Ping timeout: 252 seconds]
maxmanders has joined #ruby
gizmore|2 is now known as gizmore
jrafanie has joined #ruby
nankyoku_ has joined #ruby
__Yiota has joined #ruby
rippa has joined #ruby
gr33n7007h has joined #ruby
nankyok__ has joined #ruby
sirecote has joined #ruby
anisha has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
r7c has quit [Quit: Leaving]
nankyoku_ has quit [Ping timeout: 246 seconds]
jphase has quit [Remote host closed the connection]
polishdub has joined #ruby
rabajaj has quit [Quit: Leaving]
jphase has joined #ruby
vasilakisfil has quit [Quit: Konversation terminated!]
mim1k has joined #ruby
SuperLag has quit [Ping timeout: 248 seconds]
rabajaj has joined #ruby
rabajaj has quit [Client Quit]
chouhoulis has joined #ruby
SuperLag has joined #ruby
shime has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
John___ has quit [Ping timeout: 248 seconds]
[Butch] has joined #ruby
bronson has joined #ruby
rabajaj has joined #ruby
cdg has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
alfiemax has joined #ruby
bronson has quit [Ping timeout: 258 seconds]
ana__ has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
alex`` has joined #ruby
govg has quit [Ping timeout: 246 seconds]
someuser has joined #ruby
mim1k has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alnet has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
anisha has quit [Read error: Connection reset by peer]
mim1k has quit [Ping timeout: 248 seconds]
claudiuinberlin has joined #ruby
cdg has joined #ruby
claudiuinberlin has quit [Client Quit]
claudiuinberlin has joined #ruby
snickers has joined #ruby
dminuoso_ has joined #ruby
Serpent7776 has quit [Quit: Leaving]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
dionysus70 is now known as dionysus69
mathys has quit [Quit: Leaving]
oetjenj has joined #ruby
mim1k has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
ldnunes has joined #ruby
eroux has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lagweezle_away is now known as lagweezle
marr has joined #ruby
anisha has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
kassav_ has quit [Read error: Connection reset by peer]
kassav_ has joined #ruby
claudiuinberlin has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
centrx has joined #ruby
pr0ton has quit [Quit: pr0ton]
pr0ton has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rabajaj has quit [Remote host closed the connection]
cadillac_ has quit [Ping timeout: 248 seconds]
alfiemax has quit [Remote host closed the connection]
kassav_ has quit [Quit: kassav_]
rgr_ has quit [Quit: rgr_]
naftilos76 has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
oetjenj has joined #ruby
<naftilos76> hi i am trying to extract a substring from a big string with "some_string".scan(//) . Assuming that there are two words in the big string "one" and "two" and i want to extract the substring between these two words what would be your approach?
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
<Papierkorb> naftilos76: Only one occurence of a one/two pair in one big string, or possibly multiple occurences?
<naftilos76> Papierkorb, correct question! one occurence only
<wnd> >> "fooonebartwozzap"[/one(.*)two/, 1]
<ruby[bot]> wnd: # => "bar" (https://eval.in/873657)
marcux has joined #ruby
<Papierkorb> naftilos76: `big_string[/one(.*)two/, 1]`
gusrub has quit [Remote host closed the connection]
kies has quit [Ping timeout: 240 seconds]
<naftilos76> Papierkorb, thanks, that would be mine but somehow it does not work
<naftilos76> let me try a few things
pr0ton has quit [Ping timeout: 240 seconds]
ruby_ has joined #ruby
<ruby_> I cannot require kernel. What's with that?????
<naftilos76> Papierkorb, i have an instance that contains a big string and i do this: @file_data[/^(.*)$/, 1] and i get an empty string. Is that what it should do?
conta has quit [Ping timeout: 255 seconds]
<Papierkorb> naftilos76: empty string or nil?
<naftilos76> "" is what i get
<Papierkorb> naftilos76: That regex matches an empty line
<naftilos76> i try this while using byebug
<ruby_> This should be simple. I cannot require kernel: require 'kernel' fails???
<Papierkorb> ruby_: Why do you want to require that?
andikr has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
alfiemax has joined #ruby
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Client Quit]
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has quit [Read error: Connection reset by peer]
ruby_ is now known as ycyclist
ycyclist has quit [Quit: Page closed]
ldnunes has joined #ruby
ycyclist has joined #ruby
aufi has quit [Quit: Leaving]
fyrril2 has quit [Ping timeout: 258 seconds]
mikecmpbll has quit [Ping timeout: 264 seconds]
gusrub has joined #ruby
thinkpad has quit [Ping timeout: 258 seconds]
cadillac_ has joined #ruby
alnet has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
alfiemax has quit [Remote host closed the connection]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marxarelli|afk is now known as marxarelli
blackmesa has quit [Ping timeout: 258 seconds]
Beams has quit [Quit: .]
raynold has joined #ruby
ElDoggo has joined #ruby
andikr has quit [Remote host closed the connection]
alfiemax has joined #ruby
ElDoggo has quit [Client Quit]
postmodern has joined #ruby
alfiemax has quit [Remote host closed the connection]
ElDoggo has joined #ruby
mtkd has quit [Ping timeout: 258 seconds]
mtkd has joined #ruby
claudiuinberlin has joined #ruby
marcux has quit [Ping timeout: 248 seconds]
<havenwood> >> $LOAD_PATH.any? { |path| File.exist? File.join path, 'kernel.rb' }
<ruby[bot]> havenwood: # => false (https://eval.in/873667)
blackmesa has joined #ruby
jottr_ has joined #ruby
sysvalve has joined #ruby
simmaniac has quit [Ping timeout: 248 seconds]
conta2 has joined #ruby
jottr_ has quit [Ping timeout: 258 seconds]
eckhardt has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
techn1cs_ has joined #ruby
techn1cs has quit [Read error: Connection reset by peer]
techn1cs_ has quit [Remote host closed the connection]
anisha has quit [Quit: Leaving]
orbyt_ has joined #ruby
nankyokusei has joined #ruby
mark_66 has quit [Remote host closed the connection]
jottr_ has joined #ruby
bruno- has joined #ruby
nankyok__ has quit [Ping timeout: 258 seconds]
mim1k has quit [Ping timeout: 248 seconds]
amirite has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graft_ has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
kies has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
Dimik has joined #ruby
alfiemax has joined #ruby
motstgo has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
spt0 has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
guille-moe has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 248 seconds]
chouhoul_ has joined #ruby
InfinityFye has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 240 seconds]
amirite has quit [Remote host closed the connection]
wattt has joined #ruby
amirite has joined #ruby
chouhoulis has joined #ruby
mim1k has joined #ruby
_aeris_ has quit [Read error: Connection reset by peer]
uZiel has quit [Read error: Connection reset by peer]
_aeris_ has joined #ruby
chouhoul_ has quit [Ping timeout: 240 seconds]
spt0 has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
sspreitz has quit [Ping timeout: 240 seconds]
sspreitz has joined #ruby
charliesome has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has joined #ruby
seggy has joined #ruby
mikecmpbll has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
alfiemax has quit [Remote host closed the connection]
rgr has joined #ruby
alfiemax has joined #ruby
rgr has quit [Client Quit]
BlkDynmt has quit [Quit: BlkDynmt]
jottr_ has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
jottr_ has joined #ruby
jrafanie has joined #ruby
wattt has quit [Quit: Textual IRC Client: www.textualapp.com]
wattt has joined #ruby
workmad3 has quit [Remote host closed the connection]
jrafanie_ has joined #ruby
ycyclist has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
jrafanie has quit [Ping timeout: 240 seconds]
imode has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
harfangk has joined #ruby
iamdevnul has joined #ruby
SeepingN has joined #ruby
Cohedrin_ has joined #ruby
cagomez_ has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
dminuoso_ has quit [Ping timeout: 248 seconds]
Heph_ has quit [Quit: Leaving]
elsevero has joined #ruby
enterprisey has joined #ruby
dcluna has quit [Read error: Connection reset by peer]
dcluna has joined #ruby
harmaahylje has quit [Quit: leaving]
Trynemjoel has quit [Quit: Quitting]
harmaahylje has joined #ruby
Dimik has quit [Ping timeout: 255 seconds]
uZiel has quit [Ping timeout: 248 seconds]
pilne has joined #ruby
Bock has quit [Ping timeout: 246 seconds]
uZiel has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
bwiseman has joined #ruby
kaled has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
conta2 has quit [Ping timeout: 240 seconds]
sonOfRa has quit [Remote host closed the connection]
simmaniac has joined #ruby
Azure has quit [Read error: Connection reset by peer]
sonOfRa has joined #ruby
yokel has quit [Ping timeout: 258 seconds]
alnet has joined #ruby
sysvalve has quit [Ping timeout: 240 seconds]
tvw has quit []
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yokel has joined #ruby
mkali has joined #ruby
kaled has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Jamdaman has joined #ruby
AndBobsYourUncle has joined #ruby
blackmesa has joined #ruby
unreal has quit [Ping timeout: 258 seconds]
rfoust has quit [Read error: Connection reset by peer]
simmaniac is now known as sysvalve
jenrzzz has joined #ruby
BTRE has quit [Remote host closed the connection]
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
mkali has quit [Quit: mkali]
irick has quit [Ping timeout: 248 seconds]
BTRE has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
jinie has quit [Ping timeout: 248 seconds]
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
jinie has joined #ruby
phaul has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
unreal has joined #ruby
Dimik has joined #ruby
conta2 has joined #ruby
amirite has quit [Ping timeout: 248 seconds]
ycyclist has joined #ruby
Azure has joined #ruby
bronson has joined #ruby
motstgo has joined #ruby
<ycyclist> If my friend from last night is out there, the kernel load option worked fine.
alfiemax has quit [Remote host closed the connection]
<ycyclist> However, many is definitely larger than 2 in this case.
conta2 has quit [Ping timeout: 258 seconds]
irick has joined #ruby
Rapture has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
enterprisey has quit [Ping timeout: 248 seconds]
Azure has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
chouhoulis has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 258 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
claudiuinberlin has joined #ruby
gizmore has quit [Read error: Connection reset by peer]
jottr_ has quit [Quit: WeeChat 1.9.1]
centrx has quit []
ramfjord has quit [Ping timeout: 260 seconds]
Azure has joined #ruby
ramfjord has joined #ruby
naitian_ has quit [Ping timeout: 240 seconds]
cagmz has joined #ruby
John___ has joined #ruby
Guest97372 has joined #ruby
cagmez__ has quit [Ping timeout: 248 seconds]
enterprisey has joined #ruby
eckhardt has joined #ruby
naitian has joined #ruby
blackmesa1 has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 258 seconds]
gizmore has joined #ruby
ur5us has joined #ruby
elsevero has quit [Ping timeout: 248 seconds]
elsevero has joined #ruby
AndBobsYourUncle has joined #ruby
wald0 has joined #ruby
troulouliou_dev has joined #ruby
wattt has quit [Read error: Connection reset by peer]
petr_ has joined #ruby
<troulouliou_dev> hi what is the check_empty in this case : def valid?(value, check_empty: true)
<troulouliou_dev> alternative syntax for default parameter value ?
bwiseman has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
orbyt_ has joined #ruby
mim1k has joined #ruby
lagweezle is now known as lagweezle_away
<Papierkorb> troulouliou_dev: That's a key-word argument with a default value of `true`. To pass a different value to it, you have to explicitly pass the keyword name: `valid?(foo, check_empty: false)`. You can't omit the name, this won't work: `valid?(foo, false)`
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<troulouliou_dev> Papierkorb, ok thanks
perniciouscaffei has joined #ruby
aclark has joined #ruby
petr_ has quit [Client Quit]
<troulouliou_dev> Papierkorb, they are position independant i guess if i use several then
<Papierkorb> You're correct, they are :)
<troulouliou_dev> Papierkorb, awesome thanks
<Papierkorb> cheers
ta has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
linetrace has joined #ruby
adlerdias has quit [Quit: adlerdias]
Rapture has joined #ruby
elitetnade has joined #ruby
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kt has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
shinnya has joined #ruby
elitetnade has quit [Remote host closed the connection]
jrafanie has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Client Quit]
Kestrel-029 has quit [Read error: Connection reset by peer]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zachk has joined #ruby
enterprisey has quit [Remote host closed the connection]
naftilos76 has quit [Ping timeout: 260 seconds]
someuser has quit [Ping timeout: 258 seconds]
dinfuehr has quit [Ping timeout: 264 seconds]
ta has quit [Ping timeout: 258 seconds]
dinfuehr has joined #ruby
claudiuinberlin has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
spt0 has quit [Ping timeout: 264 seconds]
gusrub has quit [Remote host closed the connection]
troulouliou_dev has quit [Quit: Leaving]
troulouliou_dev has joined #ruby
amirite has joined #ruby
cadillac_ has joined #ruby
eroux has quit [Quit: ZZZzzz… ZZZzzz…]
gusrub has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[Butch] has quit [Quit: I'm out . . .]
linetrace has left #ruby [#ruby]
eckhardt has joined #ruby
ta has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
sysvalve has quit [Quit: Leaving]
mtkd has quit [Read error: Connection reset by peer]
ta has quit [Ping timeout: 258 seconds]
mtkd has joined #ruby
amirite has quit [Ping timeout: 248 seconds]
kt has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
Rythen has joined #ruby
lexruee has quit [Quit: ZNC 1.6.5-frankenznc - http://znc.in]
lexruee has joined #ruby
gusrub has quit [Remote host closed the connection]
eckhardt has quit [Client Quit]
amirite has joined #ruby
spt0 has joined #ruby
zeitchef has joined #ruby
poofjavelin has quit [Quit: Leaving]
amirite has quit [Ping timeout: 240 seconds]
zeitchef has quit [Client Quit]
eckhardt has joined #ruby
Archrover has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
ta has joined #ruby
ta has quit [Ping timeout: 258 seconds]
elitedhort has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
knight33 has joined #ruby
jenrzzz has joined #ruby
amirite has joined #ruby
rwb has joined #ruby
elitedhort has quit [Read error: Connection reset by peer]
Alina-malina has quit [Ping timeout: 240 seconds]
Guest97372 has quit [Ping timeout: 258 seconds]
harfangk has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
Alina-malina has joined #ruby
milardovich has quit [Client Quit]
Puffball_ has quit [Remote host closed the connection]
<Rythen> Hi I'm new to Ruby. I was wondering if it's considered better form to use symbols or strings as keys in Ruby. Is one considered more right or is it just preference that varies from developer to developer?
<Rythen> as keys to hashes I mean
ldnunes has quit [Quit: Leaving]
Puffball has joined #ruby
alnet has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<matthewd> Rythen: It really depends where the keys are coming from
bronson has joined #ruby
lagweezle_away is now known as lagweezle
<matthewd> Rythen: If it's all in straight code, symbols are handy. If you're using externally-input data, strings are more common.
Alina-malina has quit [Ping timeout: 260 seconds]
tcopeland has quit [Quit: tcopeland]
imode has quit [Ping timeout: 246 seconds]
Alina-malina has joined #ruby
ramfjord has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
<Rythen> matthewd: So if you were for example parsing strings and ptuting them into a hash it'd be better to keep the keys as strings since that's what they originally are?
<matthewd> Yeah
Alina-malina has quit [Ping timeout: 240 seconds]
ta has joined #ruby
gusrub has joined #ruby
Alina-malina has joined #ruby
rfoust has joined #ruby
ta has quit [Ping timeout: 255 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
imode has joined #ruby
Alina-malina has quit [Ping timeout: 258 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
Alina-malina has joined #ruby
imode has quit [Ping timeout: 255 seconds]
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
enterprisey has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 240 seconds]
jphase has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
Rapture has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
enterprisey has joined #ruby
orbyt_ has joined #ruby
zautomata has quit [Ping timeout: 240 seconds]
selim has quit [Ping timeout: 248 seconds]
jrafanie has quit [Ping timeout: 260 seconds]
selim has joined #ruby
sepp2k has quit [Quit: Leaving.]
AndBobsYourUncle has joined #ruby
rwb has quit [Ping timeout: 260 seconds]
biberu has quit []
Alina-malina has quit [Ping timeout: 240 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
GodFather has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
mson has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
def_jam has joined #ruby
eb0t_ has joined #ruby
orbyt_ has joined #ruby
eblip has quit [Ping timeout: 248 seconds]
eb0t has quit [Ping timeout: 248 seconds]
Alina-malina has quit [Ping timeout: 260 seconds]
elnner has quit []
alfiemax has quit [Ping timeout: 248 seconds]
Alina-malina has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
chouhoul_ has joined #ruby
zautomata has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
adamisntdead has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<adamisntdead> Hello!
chouhoul_ has quit [Ping timeout: 248 seconds]
adamisntdead has quit [Client Quit]
alex`` has quit [Ping timeout: 246 seconds]
Jamdaman has quit [Quit: Ex-Chat]
ta has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
polishdub has quit [Quit: leaving]
elsevero_ has joined #ruby
elsevero has quit [Ping timeout: 248 seconds]
elsevero_ is now known as elsevero
ta has quit [Ping timeout: 248 seconds]
orbyt_ is now known as g00s_
g00s_ is now known as orbyt_
marxarelli is now known as marxarelli|afk
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
jphase has joined #ruby
<Kanibal> >> File.join('foo/', './bar/blub.txt')
<ruby[bot]> Kanibal: # => "foo/./bar/blub.txt" (https://eval.in/873822)
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Kanibal> Is there a quick solution to further "improve" this? (omit the dot?)
jenrzzz has quit [Ping timeout: 240 seconds]
jphase has quit [Ping timeout: 246 seconds]
cdg_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
kanobt61 has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 248 seconds]
kanobt61 has joined #ruby
thinkpad has joined #ruby
kanobt61 has quit [Ping timeout: 248 seconds]
Alina-malina has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
enterprisey_ has joined #ruby
__Yiota has joined #ruby
enterprisey has quit [Ping timeout: 260 seconds]
bruno- has quit [Ping timeout: 248 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Alina-malina has quit [Ping timeout: 248 seconds]
Alina-malina has joined #ruby
tfitts has joined #ruby
ta has joined #ruby
Heph_ has joined #ruby
Rythen has quit [Ping timeout: 260 seconds]
quobo has quit [Quit: Connection closed for inactivity]
ta has quit [Ping timeout: 240 seconds]
Heph_ has quit [Quit: Leaving]
nchambers has quit [Changing host]
nchambers has joined #ruby
nchambers has quit [Changing host]
nchambers has joined #ruby
Alina-malina has quit [Ping timeout: 260 seconds]
Alina-malina has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
<cagomez_> whats the preferred object creation pattern when you want to pass in a variable and immediately get a return value back? like a throwaway object that doesn't really need to hold any state, just generate a string (for example) based on the params
<teatime> sounds like a function?
bruno- has joined #ruby
<cagomez_> teatime: let's say i want to make it into a class/object
<cagomez_> one example i saw is SomeObject.call() where SomeObject had def self.call; new.call(); end; def cell; doStuff; end; end;
jphase has joined #ruby
rwb has joined #ruby
bastilian_ has quit [Quit: bastilian_]
ta has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
bastilian_ has joined #ruby
<elomatreb> Is it necessary to create an instance internally like that?
Alina-malina has quit [Ping timeout: 240 seconds]
<elomatreb> I.e. can't you just put the logic (doStuff) in the self.call method?