havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.0, 2.7.2, 2.6.6: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.org | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
Liothen has quit [Read error: Connection reset by peer]
Liothen has joined #ruby
jonhg has joined #ruby
TCZ has joined #ruby
Azure|dc has quit [Ping timeout: 260 seconds]
<adam12> drozdziak1: If you’ve ran `bundle binstubs` before, I believe it writes a value to .bundle/config.
<adam12> drozdziak1: Best practice is to generate only the binstubs you need tho, and commit them to SCM.
jonhg has quit [Ping timeout: 245 seconds]
<adam12> AndreYuhai: Is it HTML? Try setting ff=html first. Eruby can be anything; not just HTML, so the indentation helper can be confused.
<adam12> AndreYuhai: If this is a Rails project, tpope’s vim-rails plugin might help forcing the format.
<AndreYuhai> adam12, I actually have that plugin. File type is recognized as eruby.
<AndreYuhai> But I can't really re-indent unless I set the file type as html as you said.
<adam12> AndreYuhai: .html.erb or just .erb?
<AndreYuhai> extension is html.erb
<adam12> I’m not sure I was able to ever get it work correctly, and I used Vim for decades.
<adam12> (I use VSCode+Vim extension now)
Swyper has quit [Remote host closed the connection]
<AndreYuhai> Yes, I've heard about that as well but never used code. :D I will probably switch file type to html
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
hiroaki__ has quit [Ping timeout: 272 seconds]
alexherbo2 has quit [Ping timeout: 260 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
Technodrome has joined #ruby
moldorcoder7 has quit [Ping timeout: 264 seconds]
moldorcoder7 has joined #ruby
lbwski has joined #ruby
lbwski has quit [Ping timeout: 260 seconds]
lbwski has joined #ruby
lbwski has quit [Ping timeout: 264 seconds]
ur5us_ has joined #ruby
Swyper has joined #ruby
Azure has joined #ruby
Swyper has quit [Remote host closed the connection]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bamdad has quit [Remote host closed the connection]
bamdad has joined #ruby
Swyper has joined #ruby
jonhg has joined #ruby
Rudd0 has quit [Ping timeout: 246 seconds]
Swyper has quit [Remote host closed the connection]
jonhg has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
akem has quit [Ping timeout: 260 seconds]
ur5us_ has quit [Ping timeout: 264 seconds]
akem has joined #ruby
Technodrome has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
s3nd1v0g1us has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
TCZ has quit [Quit: Apophis sie oddala]
jla has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
lbwski has joined #ruby
jonhg has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
lbwski has quit [Ping timeout: 276 seconds]
jonhg has quit [Ping timeout: 245 seconds]
s3nd1v0g1us has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
Rudd0 has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
ChmEarl has quit [Quit: Leaving]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
gix has joined #ruby
gix- has quit [Ping timeout: 276 seconds]
nofxx_ has joined #ruby
m27frogy has quit [Ping timeout: 265 seconds]
nofxx__ has quit [Ping timeout: 265 seconds]
_whitelogger has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lbwski has joined #ruby
jonhg has joined #ruby
jonhg has quit [Ping timeout: 245 seconds]
envex has joined #ruby
drnerdius has joined #ruby
lbwski has quit [Ping timeout: 245 seconds]
Technodrome has joined #ruby
romanlevin333236 has quit [Read error: Connection reset by peer]
romanlevin333236 has joined #ruby
naftilos76 has joined #ruby
<drnerdius> Hi, all. What's the equivalent of Array.delete_at(index) that returns the new array rather than deleted value?
jla has left #ruby [#ruby]
<leftylink> if there is no such thing, perhaps Object#tap would be able to be of assistance in this matter
meimeix has joined #ruby
DaRock has joined #ruby
mostlybadfly has joined #ruby
howdoi has joined #ruby
<drnerdius> leftylink: that would also work, thanks
drnerdius has quit [Quit: Konversation terminated!]
jonhg has joined #ruby
Frogging101 has quit [Quit: Close the World, Open the nExt]
Frogging101 has joined #ruby
jonhg has quit [Ping timeout: 245 seconds]
beanie__ has joined #ruby
tpanarch1st has joined #ruby
DaRock has quit [Remote host closed the connection]
DaRock has joined #ruby
elcuervo has joined #ruby
cuerbot has quit [Ping timeout: 260 seconds]
s3nd1v0g1us has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
siery has joined #ruby
shtirlic has quit [Quit: leaving]
s3nd1v0g1us has joined #ruby
lbwski has joined #ruby
ur5us_ has joined #ruby
ua_ has quit [Ping timeout: 276 seconds]
ua_ has joined #ruby
lbwski has quit [Ping timeout: 256 seconds]
_whitelogger has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
alexherbo2 has joined #ruby
s3nd1v0g1us has quit [Quit: Textual IRC Client: www.textualapp.com]
Xiti has quit [Quit: Leaving]
ur5us_ has quit [Ping timeout: 240 seconds]
jonhg has joined #ruby
jonhg has quit [Ping timeout: 276 seconds]
roadie has joined #ruby
shtirlic has joined #ruby
tpanarch1st has quit [Quit: Thanks for your help, nice to see you, take care.]
beanie__ has quit [Quit: Thanks for your help, nice to see you, take care.]
Swyper has joined #ruby
ur5us_ has joined #ruby
jonhg has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
tpanarch1st has joined #ruby
englosh has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
Emmanuel_Chanel has quit [Ping timeout: 246 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
englosh has quit [Quit: Connection closed]
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
lbwski has joined #ruby
bamdad has quit [Remote host closed the connection]
ur5us_ has quit [Ping timeout: 240 seconds]
bamdad_ has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
gearnode has joined #ruby
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
jenrzzz has quit [Ping timeout: 260 seconds]
shtirlic has quit [Quit: leaving]
lbwski has quit [Ping timeout: 256 seconds]
shtirlic has joined #ruby
alexherbo2 has quit [Ping timeout: 245 seconds]
alexherbo2 has joined #ruby
jenrzzz has joined #ruby
Emmanuel_Chanel has joined #ruby
alexherbo28 has joined #ruby
alexherbo2 has quit [Ping timeout: 264 seconds]
alexherbo28 is now known as alexherbo2
gearnode has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
TCZ has joined #ruby
shtirlic has quit [Remote host closed the connection]
lbwski has joined #ruby
lbwski has quit [Ping timeout: 264 seconds]
roadt__ has joined #ruby
roadt_ has quit [Ping timeout: 245 seconds]
greengriminal has joined #ruby
gearnode has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
shtirlic has joined #ruby
TCZ has quit [Quit: Apophis sie oddala]
jonhg has quit [Ping timeout: 245 seconds]
Swyper has joined #ruby
m27frogy has joined #ruby
Rounin has joined #ruby
fercell has joined #ruby
alexherbo24 has joined #ruby
alexherbo2 has quit [Read error: Connection reset by peer]
alexherbo24 is now known as alexherbo2
jenrzzz has quit [Ping timeout: 245 seconds]
gearnode has quit [Ping timeout: 272 seconds]
<xpitr> hmh i am going crazy, why is this changing a? a = "foo"; b = a; b.gsub!(/foo/, "bar"); # now a == "bar"
alexherbo28 has joined #ruby
alexherbo2 has quit [Ping timeout: 246 seconds]
<xpitr> if i do: b = a + "" ; then it won't be changing a
alexherbo28 is now known as alexherbo2
jenrzzz has joined #ruby
alexherbo2 has quit [Read error: Connection reset by peer]
alexherbo2 has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
TCZ has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
<adam12> xpitr: b is a reference to a. They’re the same object.
<adam12> xpitr: b = a.dup
<nakilon> typical problem of people who start coding with wrong languages
<xpitr> ah i see. its confusing because eg. b += "123" won't change a while gsub! will
<nakilon> no understanding on data handling, the term of "passing by value" and "passing by reference"
<adam12> xpitr: Right. Technically, b += “123” is b = b + “123”, which is a new String object. So you’re assigning a new object to the variable b.
<nakilon> that's because += is a kind of assigment, and assigments are always creating new stuff
<nakilon> you might want to use the String#concat method
jenrzzz has joined #ruby
<xpitr> normally i always expected b = a to assign value and not reference
<xpitr> so when i was later modifying b i was so confused lol
hiroaki__ has joined #ruby
<adam12> xpitr: You’ll find lots of “pass by reference” in Ruby (tho some will dispute the terminology probably).
<xpitr> i mean i understood that gsub! will change the b, and so do many other methods
<adam12> xpitr: Numerics and a few others are probably the exception.
<xpitr> only that b wasn't a new value surprised me
akem is now known as ChewbakaJones
yann-kaelig has joined #ruby
lbwski has joined #ruby
Technodrome has joined #ruby
lbwski has quit [Ping timeout: 245 seconds]
Swyper has quit [Remote host closed the connection]
lbwski has joined #ruby
lbwski has quit [Ping timeout: 276 seconds]
englosh has joined #ruby
englosh has quit [Client Quit]