baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.4.6: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
rhuang has joined #ruby
rhuang has quit [Remote host closed the connection]
jenrzzz has joined #ruby
crankharder has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 268 seconds]
rhuang has joined #ruby
u0_a238 has quit [Ping timeout: 250 seconds]
u0_a238 has joined #ruby
jottr has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
supergeek[m] has quit [Ping timeout: 264 seconds]
jottr has quit [Ping timeout: 268 seconds]
supergeek[m] has joined #ruby
houhoulis has joined #ruby
jottr has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
gb_away has quit [Ping timeout: 245 seconds]
gb_away has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
bougyman has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
Fernando-Basso has quit [Remote host closed the connection]
bougyman has joined #ruby
dsmythe has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
jottr has joined #ruby
GodFather has quit [Ping timeout: 264 seconds]
haengma has quit [Remote host closed the connection]
jmcgnh has joined #ruby
haengma has joined #ruby
rhuang has quit [Remote host closed the connection]
ruby-lang974 has joined #ruby
jmcgnh has quit [Client Quit]
jottr has quit [Ping timeout: 258 seconds]
sylario has quit [Quit: Connection closed for inactivity]
polishdub has quit [Quit: leaving]
haengma has quit [Ping timeout: 258 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmcgnh has joined #ruby
ruby-lang974 has quit [Ping timeout: 256 seconds]
haengma has joined #ruby
jmcgnh has quit [Client Quit]
haengma has quit [Ping timeout: 250 seconds]
jmcgnh has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
haengma has joined #ruby
noobineer has joined #ruby
haengma has quit [Ping timeout: 258 seconds]
arescorpio has joined #ruby
AJA4350 has quit [Quit: AJA4350]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
dsmythe has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
dsmythe has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
u0_a238_ has joined #ruby
u0_a238 has quit [Ping timeout: 250 seconds]
Swyper has joined #ruby
crankharder has joined #ruby
cd has quit [Ping timeout: 256 seconds]
jottr has quit [Ping timeout: 250 seconds]
cd has joined #ruby
jottr has joined #ruby
dsmythe has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
dsmythe has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
_whitelogger has joined #ruby
noobineer has quit [Ping timeout: 258 seconds]
jottr has quit [Ping timeout: 246 seconds]
Swyper has quit [Remote host closed the connection]
jottr has joined #ruby
haengma has joined #ruby
haengma has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 268 seconds]
noobineer has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
rhuang has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
tdy has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 250 seconds]
braincrash has quit [Quit: bye bye]
jottr has joined #ruby
braincrash has joined #ruby
crankharder has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 255 seconds]
tdy has joined #ruby
dsmythe has joined #ruby
jottr has joined #ruby
zacts has joined #ruby
arescorpio has quit [Remote host closed the connection]
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
duderonomy has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
jenrzzz has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
arescorpio has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
jottr has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
Milos has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 245 seconds]
mr_rich101 has quit [Quit: ZNC - http://znc.in]
ur5us has joined #ruby
mr_rich101 has joined #ruby
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
jottr has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
mostlybadfly has quit [Ping timeout: 250 seconds]
lipoqil has quit [Ping timeout: 250 seconds]
lipoqil has joined #ruby
pwillard has quit [Ping timeout: 250 seconds]
mostlybadfly has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
ur5us has quit [Ping timeout: 250 seconds]
Milos has joined #ruby
pwillard has joined #ruby
arescorpio has quit [Remote host closed the connection]
jottr has joined #ruby
Milos has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 250 seconds]
dsmythe has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
Milos has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
noobineer has quit [Remote host closed the connection]
jottr has joined #ruby
d^sh has quit [Ping timeout: 250 seconds]
d^sh has joined #ruby
zacts has quit [Quit: WeeChat 2.4]
jottr has quit [Ping timeout: 250 seconds]
dsmythe has joined #ruby
jottr has joined #ruby
haengma has joined #ruby
dsmythe has quit [Ping timeout: 268 seconds]
rhuang has quit [Ping timeout: 250 seconds]
haengma has quit [Ping timeout: 258 seconds]
weteamsteve has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 245 seconds]
laaron has quit [Remote host closed the connection]
jottr has joined #ruby
laaron has joined #ruby
aupadhye has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
dinfuehr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
sauvin has joined #ruby
jenrzzz has joined #ruby
jottr has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
u0_a238_ has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 250 seconds]
u0_a238 has joined #ruby
jottr has joined #ruby
m_antis has quit [Quit: m_antis]
jottr has quit [Ping timeout: 250 seconds]
uranoss has quit [Quit: Connection closed for inactivity]
u0_a238 has quit [Ping timeout: 246 seconds]
u0_a238 has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jarray52 has joined #ruby
jarray52 has quit [Changing host]
jarray52 has joined #ruby
jottr has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
Ai9zO5AP has joined #ruby
jottr has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.4]
jottr has quit [Ping timeout: 255 seconds]
Milos has quit [Quit: ZNC 1.7.3 - https://znc.in]
Milos has joined #ruby
laaron has quit [Remote host closed the connection]
Ai9zO5AP has quit [Quit: WeeChat 2.4]
laaron has joined #ruby
jenrzzz has joined #ruby
Ai9zO5AP has joined #ruby
reber has joined #ruby
jottr has joined #ruby
dsmythe has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
laaron has quit [Remote host closed the connection]
ramfjord has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
laaron has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
conta has joined #ruby
reber has quit [Remote host closed the connection]
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
Swyper has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
jottr has joined #ruby
laaron has quit [Remote host closed the connection]
dsmythe has quit [Ping timeout: 244 seconds]
laaron has joined #ruby
haengma has joined #ruby
haengma has quit [Ping timeout: 245 seconds]
flips has joined #ruby
flips has left #ruby ["BBL"]
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
mikecmpbll has joined #ruby
jarray52 has left #ruby [#ruby]
jottr has quit [Ping timeout: 246 seconds]
landakram has joined #ruby
Swyper has quit [Remote host closed the connection]
jottr has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
rippa has joined #ruby
jottr has joined #ruby
mikecmpbll has quit [Read error: Connection timed out]
mikecmpbll has joined #ruby
conta1 has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
claudiuinberlin has joined #ruby
kyrylo has joined #ruby
jottr has joined #ruby
laaron has quit [Remote host closed the connection]
nowhere_man has joined #ruby
jenrzzz has joined #ruby
landakram has quit [Ping timeout: 255 seconds]
laaron has joined #ruby
nowhere_man has quit [Remote host closed the connection]
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
ramfjord has joined #ruby
dar123 has quit [Ping timeout: 276 seconds]
nowhere_man has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
reber has joined #ruby
cek has joined #ruby
cek has left #ruby [#ruby]
conta1 has quit [Quit: conta1]
gix has joined #ruby
fphilipe has quit [Ping timeout: 258 seconds]
m_antis has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
fphilipe has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
voidwatch has joined #ruby
laaron has quit [Remote host closed the connection]
voidwatch has quit [Client Quit]
Dbugger has joined #ruby
laaron has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
fphilipe has quit [Ping timeout: 250 seconds]
fphilipe has joined #ruby
nowhere_man has quit [Ping timeout: 246 seconds]
jhill has quit []
ec has quit []
jhill has joined #ruby
strmpnk has quit []
strmpnk has joined #ruby
ec has joined #ruby
englishm has quit []
englishm has joined #ruby
englishm has quit [Excess Flood]
Swyper has joined #ruby
englishm has joined #ruby
englishm has quit [Excess Flood]
englishm has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
al2o3-cr has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
jottr has joined #ruby
fphilipe has quit [Ping timeout: 252 seconds]
nowhere_man has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
Inline has quit [Quit: Leaving]
Inline has joined #ruby
AJA4350 has joined #ruby
al2o3-cr has joined #ruby
jottr has joined #ruby
Swyper has quit [Remote host closed the connection]
cd has quit [Quit: cd]
jottr has quit [Ping timeout: 246 seconds]
Swyper has joined #ruby
dar123 has joined #ruby
sagax has quit [Quit: Konversation terminated!]
sagax has joined #ruby
jottr has joined #ruby
Swyper has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 248 seconds]
kapil____ has joined #ruby
Swyper has joined #ruby
jottr has joined #ruby
thunderbirdtr has quit [Quit: ZNC 1.7.3 - https://znc.in]
nowhere_man has quit [Ping timeout: 250 seconds]
conta1 has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
aupadhye has quit [Quit: Leaving]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_whitelogger_ has joined #ruby
_whitelogger has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 250 seconds]
fphilipe has joined #ruby
jottr has joined #ruby
Research has joined #ruby
<Research> I'm getting "ERROR: While executing gem ... (NameError)" when trying to use gem uninstall
<Research> Does anyone here know what that means?
<Research> actually nvmd I figured it out
<Research> apparently I had to install rdoc to uninstall gems
<Research> but it installs them just fine without it
jottr has quit [Ping timeout: 252 seconds]
fphilipe has quit [Ping timeout: 252 seconds]
conta has quit [Ping timeout: 258 seconds]
conta1 is now known as conta
jenrzzz has joined #ruby
jottr has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 246 seconds]
reber has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
d^sh has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
d^sh has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
postmodern has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
nowhere_man has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
leah2 has joined #ruby
jottr has joined #ruby
ur5us has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 246 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
jottr has joined #ruby
crova has joined #ruby
Xeago has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
sagax has quit [Quit: Konversation terminated!]
AJA4350 has quit [Quit: AJA4350]
crova has quit [Quit: crova]
clemens3 has quit [Ping timeout: 258 seconds]
clemens3_ has joined #ruby
TheBrayn has quit [Quit: poof]
tdy has quit [Ping timeout: 245 seconds]
TheBrayn has joined #ruby
dellavg_ has joined #ruby
wallace_mu has joined #ruby
kyrylo has joined #ruby
Ltem has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
dinfuehr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 264 seconds]
Ltem has quit [Remote host closed the connection]
Ltem has joined #ruby
jenrzzz has joined #ruby
crawler has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 246 seconds]
zacts has joined #ruby
jottr has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mia has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
_sfiguser has joined #ruby
crawler has quit [Quit: Leaving]
Ltem has quit [Remote host closed the connection]
Ltem has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
vindvaki has joined #ruby
vindvaki has quit [Client Quit]
jottr has joined #ruby
moei has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
yaewa has joined #ruby
yaewa has quit [Remote host closed the connection]
moei has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 246 seconds]
queip has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
queip has joined #ruby
jottr has joined #ruby
UncleCid__ has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 245 seconds]
pskosinski has joined #ruby
pskosinski has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 245 seconds]
kyrylo has quit [Quit: Textual IRC Client: www.textualapp.com]
pskosinski has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
pskosinski has joined #ruby
jottr has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
moei has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
nowhere_man has quit [Ping timeout: 268 seconds]
pskosinski has joined #ruby
beeeshk has joined #ruby
pskosinski has quit [Remote host closed the connection]
jottr has joined #ruby
jenrzzz has joined #ruby
Swyper has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
_whitelogger has joined #ruby
fphilipe has joined #ruby
zacts has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 255 seconds]
fphilipe has quit [Ping timeout: 248 seconds]
zacts has joined #ruby
jottr has joined #ruby
zacts has quit [Client Quit]
zacts has joined #ruby
<beeeshk> exit
beeeshk has quit [Quit: beeeshk]
Inline has quit [Ping timeout: 264 seconds]
jottr has quit [Ping timeout: 248 seconds]
flatironschool has joined #ruby
Inline has joined #ruby
mg has joined #ruby
jottr has joined #ruby
plujon has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
GodFather has joined #ruby
laaron has quit [Remote host closed the connection]
fphilipe has joined #ruby
<plujon> for i in a b; do echo $i>$i; done; ruby -e 'ARGF.each_line do puts "#{ARGF.filename} #{ARGF.lineno}"; end' a b
<plujon> What is the expected output of that? 'a 1 b 1' or 'a 1 b 2' ?
<Zarthus> latter cause i just ran it
<plujon> I expected the former, but I got the latter.
laaron has joined #ruby
jottr has joined #ruby
<phaul> "This method allows you to treat the files supplied on the command line as a single file consisting of the concatenation of each named file. "
<plujon> phaul: Hmm. Thanks. I guess it is the example that is confusing.
<phaul> I don't know. I think I agree with you now
<plujon> "For example, the following code prints out each line of each named file ..."
jottr has quit [Ping timeout: 246 seconds]
<plujon> "... displaying the filename once per file"
<phaul> displaying the filename once per file: yeah if it works the way it does it would only print the first file
<plujon> I previously thought $. would yield the global line, and ARGF.lineno would return the line inside the current ARGF element.
<phaul> yeah the documentation certeainly suggest that
<plujon> In fact, I vaguely recall seeing this behavior once upon a time (ruby 2.4?). But I'm not sure.
<plujon> It looks like either a ruby bug or a documentation bug. I'm using ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
jottr has joined #ruby
<plujon> I'll file a bug.
<plujon> It is hard to believe ARGF.lineno isn't tested in the ruby build/release process. Perhaps I am mistaken.
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
<phaul> there is explicit tests for line numbers
mg has quit [Quit: Lost terminal]
<plujon> Hmm: ARGF.file.lineno !
Research has left #ruby ["Leaving"]
BTRE has quit [Ping timeout: 250 seconds]
Dbugger has quit [Quit: Leaving]
BTRE has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
dar123 has joined #ruby
zacts has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
TomyLobo has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
<plujon> We'll see what the devs say.
plujon has quit [Quit: ERC (IRC client for Emacs 25.2.2)]
claudiuinberlin has joined #ruby
cnsvc has joined #ruby
conta has quit [Remote host closed the connection]
jottr has joined #ruby
conta has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
fphilipe has quit [Ping timeout: 252 seconds]
tdy has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
GodFather has quit [Ping timeout: 264 seconds]
cnsvc has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
plujon has joined #ruby
wald0 has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
fphilipe has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jottr has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
flatironschool has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 258 seconds]
flatironschool has joined #ruby
_sfiguser has quit [Read error: Connection reset by peer]
jottr has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 248 seconds]
flatironschool has quit [Quit: flatironschool]
rhuang has joined #ruby
desperek has joined #ruby
<desperek> hi, how do you integrate database into your web app?
jottr has joined #ruby
<desperek> is requiring a one file with, umh lets say a database class that handles connecting to db and then querying it a good way
flatironschool has joined #ruby
<phaul> depends. There are two main approaches afaict , the repository pattern (prefered by most) vs the active record pattern
<phaul> what you are describing is closer to active record pattern
<phaul> sorry, the other one
<desperek> the repo one?
<phaul> repository pattern
<desperek> right
<desperek> and active record pattern is what
<desperek> keeping a persistent connection?
<phaul> having classes per "models" (db tables) whose class methods relate to all entries and instance methods relate to rows
jottr has quit [Ping timeout: 255 seconds]
rhuang has quit [Ping timeout: 255 seconds]
<phaul> the connection can be kept persistent in the app for either solutions
fphilipe has quit [Ping timeout: 248 seconds]
<desperek> oh right i get whats the difference now
<desperek> thanks
segy has quit [Ping timeout: 246 seconds]
<desperek> either way, i dont get how do you keep the connection persistent lol
<phaul> one way: inside Singleton app object, that's created from top level "main"
<desperek> oh thanks!
<desperek> why didnt i think about it :thinking:
<phaul> then you just pass that around. It's a disguised bunch of global vars
<desperek> or wait, app object
<phaul> still you are explicit about passing it, so a bit better than $connection
jottr has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<desperek> phaul, well but i could just make like @db on top and then use that, right?
<phaul> that's almsot the same.
segy has joined #ruby
<desperek> phaul, the same as $connection or passing the object though
<desperek> well, nvm that question i guess. thanks anyways phaul
jottr has quit [Ping timeout: 258 seconds]
<phaul> difference being wehter every place can call $db.close and mess with things, or you can have large chunks of unrelated libraries and codes that simply can't see the db connection
<desperek> thanks you
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
desperek has quit [Quit: mew wew]
jottr has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
Dbugger has joined #ruby
ukd1 has joined #ruby
jottr has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
cd has joined #ruby
wallace_mu has quit []
dinfuehr has joined #ruby
old_relik has joined #ruby
d0liver has joined #ruby
<old_relik> x-post from #rubyonrails: is there an easy way to get time object for time at a specifc time of the day, like 2pm for today, but give 2pm for next day if it's already past 2pm today
jottr has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
AndroidKitKat has left #ruby ["Igloo IRC: https://iglooirc.com"]
weteamsteve has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
old_relik has quit [Quit: Page closed]
Swyper has joined #ruby
Xiti has quit [Quit: Xiti]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xiti has joined #ruby
jottr has joined #ruby
Swyper has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 252 seconds]
conta has quit [Quit: conta]
nowhere_man has joined #ruby
pskosinski has joined #ruby
queip has quit [Ping timeout: 246 seconds]
pskosinski has quit [Remote host closed the connection]
jottr has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
queip has joined #ruby
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
jmcgnh has joined #ruby
jottr has joined #ruby
cthulchu_ has joined #ruby
cthulchu has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
sameerynho has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
nowhere_man has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
d^sh has quit [Ping timeout: 248 seconds]
jmcgnh has joined #ruby
flatironschool has quit [Quit: flatironschool]
d^sh has joined #ruby
jmcgnh has quit [Client Quit]
claudiuinberlin has joined #ruby
jmcgnh has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
orbyt_ has joined #ruby
jottr has joined #ruby
fphilipe has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jottr has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
kyrylo has joined #ruby
jmcgnh has joined #ruby
AJA4350 has joined #ruby
fphilipe has quit [Ping timeout: 252 seconds]
jmcgnh has quit [Client Quit]
Swyper has joined #ruby
jottr has joined #ruby
jmcgnh has joined #ruby
jmcgnh has quit [Client Quit]
jottr has quit [Ping timeout: 246 seconds]
jmcgnh has joined #ruby
Dbugger has quit [Ping timeout: 252 seconds]
Swyper has quit [Remote host closed the connection]
jmcgnh has quit [Client Quit]
fphilipe has joined #ruby
jottr has joined #ruby
jmcgnh has joined #ruby
Ai9zO5AP has quit [Quit: WeeChat 2.4]
jottr has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
dellavg_ has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 255 seconds]
u0_a238 has quit [Ping timeout: 250 seconds]
u0_a238 has joined #ruby
jottr has joined #ruby
orbyt_ has joined #ruby
jenrzzz has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
jottr has quit [Ping timeout: 248 seconds]
Swyper has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jrabe has joined #ruby
jottr has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 246 seconds]
haengma has joined #ruby
haengma has quit [Remote host closed the connection]
jottr has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
Swyper has quit [Remote host closed the connection]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
jottr has joined #ruby
jenrzzz has joined #ruby
fphilipe has quit [Ping timeout: 258 seconds]
jottr has quit [Ping timeout: 248 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
weteamsteve1 has joined #ruby
jottr has joined #ruby
weteamsteve has quit [Ping timeout: 248 seconds]
jottr has quit [Ping timeout: 258 seconds]
Tempesta has quit [Quit: See ya!]
Swyper has quit [Remote host closed the connection]
jottr has joined #ruby
Ltem has quit [Quit: bye]
Swyper has joined #ruby
jrabe has left #ruby [#ruby]
jottr has quit [Ping timeout: 252 seconds]
tdy has quit [Ping timeout: 252 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
weteamsteve2 has joined #ruby
dsmythe has joined #ruby
dsmythe_ has joined #ruby
jottr has joined #ruby
weteamsteve1 has quit [Ping timeout: 264 seconds]
Tempesta has joined #ruby
orbyt_ has joined #ruby
dsmythe has quit [Ping timeout: 258 seconds]
jottr has quit [Ping timeout: 248 seconds]
fphilipe has joined #ruby
<Iambchop> >> require 'time'; Time.parse('2pm')
<ruby[bot]> Iambchop: # => 2019-05-04 14:00:00 +0000 (https://eval.in/1102878)
<Iambchop> >> require 'time'; (t=Time.parse('2pm')) < Time.now ? t+86400 : t
<ruby[bot]> Iambchop: # => 2019-05-05 14:00:00 +0000 (https://eval.in/1102879)
jottr has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
mosh has quit [Ping timeout: 250 seconds]
Swyper has quit [Remote host closed the connection]
jottr has joined #ruby
mosh has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
zacts has joined #ruby
Swyper has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
AndroidKitKat has joined #ruby
lel has quit [Ping timeout: 258 seconds]
fphilipe has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
nowhere_man has joined #ruby
jottr has joined #ruby
RiPuk has quit [Quit: ZNC 1.7.3 - https://znc.in]
RiPuk has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
dviola has quit [Quit: WeeChat 2.4]
RiPuk has quit [Remote host closed the connection]
RiPuk has joined #ruby
jottr has joined #ruby
moei has quit [Quit: Leaving...]
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
clemens3_ has quit [Ping timeout: 258 seconds]
clemens3 has joined #ruby
haengma has joined #ruby
jottr has joined #ruby
haengma has quit [Ping timeout: 252 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bga57 has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 252 seconds]
akem has quit [Remote host closed the connection]
jottr has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]