havenwood changed the topic of #ruby to: Ruby 3.2.2, 3.1.4, 3.3.0-preview1: https://www.ruby-lang.org | Rules: https://ruby-community.com | Logs: https://libera.irclog.whitequark.org/ruby
gr33n7007h has quit [Ping timeout: 246 seconds]
f4z4 has quit [Quit: Bye bye…]
f4z4 has joined #ruby
gr33n7007h has joined #ruby
MarvelousWololo has quit [Ping timeout: 246 seconds]
f4z4 has quit [Quit: Bye bye…]
f4z4 has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CrazyEddy has joined #ruby
<johnjaye> in Array the sum method is an instance method correct?
<johnjaye> so why does help("Array.sum") display a page?
<johnjaye> it seems to be the same as help("Array#sum") which I thought was the syntax for an instance method
victori has joined #ruby
TheCatCollective has joined #ruby
some14u has joined #ruby
some14u has quit [Client Quit]
MarvelousWololo has joined #ruby
konsolebox has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
MarvelousWololo_ has joined #ruby
MarvelousWololo_ has quit [Read error: Connection reset by peer]
MarvelousWololo has quit [Read error: Connection reset by peer]
MarvelousWololo has joined #ruby
John_Ivan has quit [Ping timeout: 260 seconds]
Vonter has quit [Ping timeout: 260 seconds]
Vonter has joined #ruby
<adam12> Grr. Just spent an hour debugging why a module wasn't in the ancestor tree to find I was clobbering the constant after the fact.
<adam12> johnjaye: Someone decided once that `.` in the help would indicate an instance OR class method when accessing the help. I personally hate it.
<adam12> johnjaye: You can see the difference by using `::` to look up class methods.
<adam12> ie. Array::sum
some14u has joined #ruby
Bish has joined #ruby
hightower3 has joined #ruby
nmollerup has quit [Read error: Connection reset by peer]
hightower2 has quit [Read error: Connection reset by peer]
shokohsc510 has quit [Quit: Ping timeout (120 seconds)]
nmollerup has joined #ruby
shokohsc5105 has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_ht has joined #ruby
konsolebox has quit [Quit: -a- IRC for Android 2.1.60]
mark22k has quit [Quit: The Lounge - https://thelounge.chat]
mark22k has joined #ruby
Vonter has quit [Ping timeout: 256 seconds]
Vonter has joined #ruby
otisolsen70 has joined #ruby
reset has quit [Quit: reset]
_ht has quit [Quit: _ht]
grenierm has joined #ruby
MarvelousWololo has quit [Read error: Connection reset by peer]
Perflosopher has quit [Quit: Ping timeout (120 seconds)]
Perflosopher has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
dsdxtech has joined #ruby
crespire1 has quit [Ping timeout: 245 seconds]
crespire has joined #ruby
grenierm has quit [Ping timeout: 246 seconds]
willfish has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
tsujp has quit [Changing host]
tsujp has joined #ruby
<szahid> @adam12, VSC autocomplete doesnt work
patrick- has quit [Ping timeout: 246 seconds]
patrick- has joined #ruby
shokohsc510 has joined #ruby
shokohsc5105 has quit [Ping timeout: 245 seconds]
Pixi` is now known as Pixi
shiru has joined #ruby
dsdxtech has quit [Quit: Leaving]
Linux_Kerio has joined #ruby
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
konsolebox has joined #ruby
gr33n7007h has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 240 seconds]
Sankalp- is now known as Sankalp
willfish has quit [Ping timeout: 246 seconds]
yassernasc has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
user23 has joined #ruby
<adam12> szahid: That's still not a great part of Ruby development because it's so dynamic. Shopify has a new Ruby LSP that might help, or you can maybe try Solargraph. I suspect this will all improve over the next year as there's a ton of investment into it right now.
<adam12> szahid: Rubymine should work out of box since they ship their own tooling for that
MalusVulgaris has joined #ruby
xuochi has joined #ruby
shiru has quit [Quit: leaving]
MalusVulgaris has quit [Quit: MalusVulgaris]
hrberg has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
hrberg has joined #ruby
yassernasc has quit [Remote host closed the connection]
yassernasc has joined #ruby
splud has quit [Quit: Leaving]
Perflosopher has quit [Read error: Connection reset by peer]
some14u has joined #ruby
Perflosopher has joined #ruby
willfish has joined #ruby
desnudopenguino has joined #ruby
<adam12> good morning
<desnudopenguino> it's friday, that's good enough!
<adam12> desnudopenguino: 100%
<adam12> I got around to watching the RailsConf keynote from Aaron, since it's usually dynamite, and his pitch for a single LSP for Rails + VSCode plugin makes me insanely jealous.
<adam12> Since I no longer write Rails.
<adam12> I hope ruby-lsp is extendable enough in the future for non-Rails projects to embrace.
yassernasc has quit [Remote host closed the connection]
eddof13 has joined #ruby
<desnudopenguino> oh, got a link?
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Vonter has quit [Quit: WeeChat 4.0.2]
John_Ivan has joined #ruby
user23 has quit [Remote host closed the connection]
Vonter has joined #ruby
_ht has joined #ruby
<johnjaye> i didn't even know ruby had an lsp
<johnjaye> i think they're different for every language yea?
Vonter has quit [Ping timeout: 248 seconds]
Vonter has joined #ruby
eddof13 has joined #ruby
<johnjaye> are {} blocks and the indented ones interchangeable?
<johnjaye> this code i would think should use a {}
<johnjaye> [1,2,3,4,5,6].each do |n| if n.even? even_numbers << n end end
yassernasc has joined #ruby
willfish has quit [Ping timeout: 248 seconds]
splud has joined #ruby
konsolebox has quit [Quit: Leaving]
MarvelousWololo has joined #ruby
desnudopenguino has quit [Ping timeout: 245 seconds]
Vonter has quit [Ping timeout: 248 seconds]
Vonter has joined #ruby
xuochi has quit [Quit: Oh, so they have Internet on computers now!]
graywolf has joined #ruby
FetidToot1 has joined #ruby
FetidToot has quit [Ping timeout: 260 seconds]
FetidToot has joined #ruby
FetidToot1 has quit [Ping timeout: 246 seconds]
Vonter has quit [Ping timeout: 258 seconds]
Vonter has joined #ruby
FetidToot has quit [Ping timeout: 246 seconds]
FetidToot has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
FetidToot has quit [Quit: The Lounge - https://thelounge.chat]
yassernasc has quit [Remote host closed the connection]
yassernasc has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<newton> adam12, +1, it's sad to solargraph get dusted but I hope that ruby-lsp will support find definition etc in the future.
<newton> I find myself using solargraph over ruby-lsp when sorbet isn't present
graywolf has quit [Quit: WeeChat 4.0.2]
<weaksauc_> yeah i fear ruby-lsp will not be as amenable to people not using the blessed shopify stack
<newton> so not quite there yet, but looks like it's being worked on
<weaksauc_> oh that's good news
eddof13 has joined #ruby
FetidToot has joined #ruby
donofrio_ has quit [Read error: Connection reset by peer]
FetidToot has quit [Quit: The Lounge - https://thelounge.chat]
FetidToot has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Vonter has quit [Ping timeout: 246 seconds]
Vonter has joined #ruby
graywolf has joined #ruby
<havenwood> johnjaye: They have different precedence but otherwise the same. Instead of #each with #<< use #map.
<havenwood> >> ((2..6) % 2).to_a
<ruby[bot]> havenwood: # => [2, 4, 6] (https://carc.in/#/r/flzo)
<havenwood> >> 2.step(by: 2, to: 6).to_a
<ruby[bot]> havenwood: # => [2, 4, 6] (https://carc.in/#/r/flzp)
<havenwood> >> (2..6).filter(&:even?)
<ruby[bot]> havenwood: # => [2, 4, 6] (https://carc.in/#/r/flzr)
janusx has joined #ruby
<havenwood> johnjaye: Or in this case, #filter or its alias #select.
<havenwood> It's far more common to use #map, #filter, and friends than #each in practice.
victori has quit [Quit: ZNC 1.8.2 - https://znc.in]
<havenwood> You implement #each to get all the other more useful Enumerable methods.
victori has joined #ruby
janusx has quit [Ping timeout: 248 seconds]
janusx has joined #ruby
grenierm has joined #ruby
janusy has joined #ruby
RDMengineer has quit [Quit: Ping timeout (120 seconds)]
RDMengineer has joined #ruby
Linux_Kerio has quit [Ping timeout: 256 seconds]
janusx has quit [Ping timeout: 246 seconds]
willfish has joined #ruby
willfish has quit [Client Quit]
willfish has joined #ruby
grenierm has quit [Quit: Client closed]
willfish has quit [Client Quit]
willfish has joined #ruby
janusy has quit [Ping timeout: 246 seconds]
eddof13 has joined #ruby
Vonter has quit [Ping timeout: 246 seconds]
Vonter has joined #ruby
johnjaye has quit [Ping timeout: 260 seconds]
johnjaye has joined #ruby
hd1 has joined #ruby
hd1 has left #ruby [#ruby]
Huckleberry777 has quit [Quit: Huckleberry777]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Huckleberry777 has joined #ruby
_ht has quit [Remote host closed the connection]
Liothen has quit [Ping timeout: 246 seconds]
rubin55 has quit [Ping timeout: 245 seconds]
Liothen has joined #ruby
gr33n7007h has quit [Ping timeout: 248 seconds]
gr33n7007h has joined #ruby
rubin55 has joined #ruby
gr33n7007h has quit [Ping timeout: 248 seconds]
shokohsc5106 has joined #ruby
shokohsc510 has quit [Ping timeout: 246 seconds]
shokohsc5106 is now known as shokohsc510
gr33n7007h has joined #ruby
yassernasc has quit [Remote host closed the connection]
otisolsen70 has quit [Quit: Leaving]
willfish has quit [Ping timeout: 246 seconds]
Perflosopher has quit [Ping timeout: 248 seconds]
Perflosopher has joined #ruby
some14u has joined #ruby
eddof13 has joined #ruby
dviola has quit [Ping timeout: 252 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
havenwood has joined #ruby
graywolf has quit [Ping timeout: 245 seconds]
John_Ivan has quit [Quit: Disrupting the dragon's slumber one time too often shall eventually bestow upon all an empirical and indiscriminate conflagration that will last for all goddamn eternity.]
A_Dragon is now known as A_Noodle
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
tomtmym has quit [Quit: Gone.]
victori has quit [Quit: ZNC 1.8.2 - https://znc.in]
victori has joined #ruby
victori has quit [Quit: ZNC 1.8.2 - https://znc.in]
victori has joined #ruby
teclator has quit [Ping timeout: 260 seconds]
konsolebox has joined #ruby