__DuBPiRaTe__ has quit [Remote host closed the connection]
___nick___ has quit [Ping timeout: 244 seconds]
___nick___ has joined #ruby
__DuBPiRaTe__ has joined #ruby
<havenwood>
leah2: what version of Ruby?
<leah2>
3.2
<leah2>
from current ports i think
MsInput has quit [Quit: WeeChat 4.5.0]
Munto has joined #ruby
hwpplayer1 has joined #ruby
ZAJDAN1 has joined #ruby
<ZAJDAN1>
hi, i have two variables, how can I add them into array?
hwpplayer1 has quit [Remote host closed the connection]
Rounin has quit [Ping timeout: 265 seconds]
Rounin has joined #ruby
<intelligent_boat>
I don't believe I have enough information to understand whether I should recommend an array literal, []=, unshift, <<, or concat
<intelligent_boat>
so I just have to say "without more information this question cannot be answered'
reset has quit [Quit: reset]
__DuBPiRaTe__ has quit [Quit: Leaving]
<ZAJDAN1>
ok I will begin with other one... I have ruby command to find latest directory: Dir.glob("/home/info21/archive1/*/").max_by {|f| File.mtime(f)} ..how can I pass the result of the command into variable?
<intelligent_boat>
is `appropriately_named_variable = Dir.glob("...").max_by { ... }` inappropriate here
<intelligent_boat>
if it's not appropriate I must have misunderstood and there's a different result, so I will be able to help if I can get some help clarifying my misunderstanding
<ZAJDAN1>
I found the mistake, I had typping erron in line above
livoreno has joined #ruby
___nick___ has quit [Ping timeout: 276 seconds]
hwpplayer1 has joined #ruby
hwpplayer1 has quit [Remote host closed the connection]
JulioPapel has joined #ruby
JulioPapel has quit [Quit: JulioPapel]
JulioPapel has joined #ruby
Pixi` has quit [Quit: Leaving]
<havenwood>
(They were missing a closing bracket on a prior line, for the curious.)
user71 has quit [Quit: Leaving]
Pixi has joined #ruby
lirion has quit [Quit: (ᴗ˳ᴗ)💤]
ruby[bot] has quit [Remote host closed the connection]