havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.1, 3.0.3, 2.7.5: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
sam113102 has joined #ruby
weyhmueller has quit [Ping timeout: 256 seconds]
NightMonkey has quit [Ping timeout: 256 seconds]
CalimeroTeknik has quit [Ping timeout: 256 seconds]
mooff7 has joined #ruby
gfawcett2 has joined #ruby
brw7 has joined #ruby
ralu1 has joined #ruby
moo has quit [Remote host closed the connection]
gfawcett has quit [Read error: Connection reset by peer]
gfawcett2 is now known as gfawcett
moo has joined #ruby
dac has quit [Remote host closed the connection]
weyhmueller has joined #ruby
dcx has joined #ruby
sam113101 has quit [Ping timeout: 256 seconds]
brw has quit [Read error: Connection reset by peer]
brw7 is now known as brw
sam113102 is now known as sam113101
mooff has quit [Write error: Connection reset by peer]
mooff7 is now known as mooff
NightMonkey has joined #ruby
CalimeroTeknik has joined #ruby
ralu has quit [Ping timeout: 256 seconds]
ralu1 is now known as ralu
bhaak has quit [Ping timeout: 256 seconds]
bhaak has joined #ruby
belak51 has joined #ruby
apotheon has quit [Ping timeout: 256 seconds]
splud has quit [Ping timeout: 256 seconds]
cout has quit [Ping timeout: 256 seconds]
thoraxe has quit [Ping timeout: 256 seconds]
belak has quit [Ping timeout: 256 seconds]
valeness_ has quit [Ping timeout: 256 seconds]
cout has joined #ruby
thoraxe has joined #ruby
valeness_ has joined #ruby
belak51 is now known as belak
apotheon has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
splud has joined #ruby
seifeslimene has quit [Quit: Konversation terminated!]
seifeslimene has joined #ruby
donofrio has quit [Ping timeout: 268 seconds]
seifeslimene has quit [Quit: Konversation terminated!]
seifeslimene has joined #ruby
Rounin has quit [Ping timeout: 256 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
donofrio has joined #ruby
ur5us has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
some14u has quit [Ping timeout: 250 seconds]
donofrio has quit [Ping timeout: 246 seconds]
ollysmith has quit [Ping timeout: 256 seconds]
axsuul has quit [Ping timeout: 256 seconds]
Goodbye_Vincent1 has joined #ruby
ollysmith has joined #ruby
axsuul has joined #ruby
Goodbye_Vincent has quit [Ping timeout: 256 seconds]
fcser has quit [Ping timeout: 256 seconds]
Goodbye_Vincent1 is now known as Goodbye_Vincent
acosta3 has joined #ruby
axisys has quit [Ping timeout: 256 seconds]
acosta has quit [Read error: Connection reset by peer]
acosta3 is now known as acosta
axisys has joined #ruby
fcser has joined #ruby
some14u has joined #ruby
some14u has quit [Ping timeout: 245 seconds]
nirvdrum has joined #ruby
oxfuxxx has joined #ruby
<seifeslimene> !give seifeslimene books
oxfuxxx has quit [Ping timeout: 246 seconds]
eddof13 has joined #ruby
<dorian> hey question: why would pry history not work on ubuntu but work on a mac?
<dorian> assume i didn't touch anything or do anything weird installing either
<dorian> (unless i did for the mac and don't remember?)
<dorian> i dunno, is history not on by default in pry?
donofrio has joined #ruby
oxfuxxx has joined #ruby
o|||||o has quit [Remote host closed the connection]
o|||||o has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
r3m has quit [Quit: WeeChat 3.6-dev]
donofrio has quit [Ping timeout: 246 seconds]
oxfuxxx has quit [Ping timeout: 246 seconds]
oxfuxxx has joined #ruby
gr33n7007h has quit [Ping timeout: 256 seconds]
gr33n7007h has joined #ruby
favadi has joined #ruby
nirvdrum has quit [Ping timeout: 246 seconds]
r3m_ has joined #ruby
oxfuxxx has quit [Ping timeout: 248 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Read error: Connection reset by peer]
r3m_ is now known as r3m
davidw has quit [Ping timeout: 246 seconds]
oxfuxxx has joined #ruby
ur5us has quit [Ping timeout: 268 seconds]
seifeslimene has quit [Ping timeout: 248 seconds]
favadi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oxfuxxx has quit [Ping timeout: 248 seconds]
hololeap_ has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
hololeap_ has joined #ruby
favadi has joined #ruby
teclator has joined #ruby
o|||||o has quit [Ping timeout: 268 seconds]
favadi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
favadi has joined #ruby
benjamin- has joined #ruby
benjaminwil has quit [Ping timeout: 256 seconds]
roadie has joined #ruby
dviola has joined #ruby
fowl2 has joined #ruby
fowl has quit [Ping timeout: 246 seconds]
fowl2 is now known as fowl
favadi has quit [Ping timeout: 260 seconds]
oxfuxxx has joined #ruby
random-jellyfish has joined #ruby
Rounin has joined #ruby
mollerup has joined #ruby
nmollerup has quit [Read error: Connection reset by peer]
donofrio has joined #ruby
mollerup has quit [Remote host closed the connection]
gr33n7007h has quit [Quit: WeeChat 3.5]
donofrio has quit [Ping timeout: 268 seconds]
oxfuxxx has quit [Ping timeout: 260 seconds]
nmollerup has joined #ruby
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
jpn has joined #ruby
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
CalimeroTeknik has quit [Changing host]
CalimeroTeknik has joined #ruby
seifeslimene has joined #ruby
perrierjouet has quit [Ping timeout: 260 seconds]
reset has quit [Quit: reset]
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
Thanzex has quit [Read error: Connection reset by peer]
ua__ has quit [Ping timeout: 260 seconds]
Thanzex has joined #ruby
donofrio has joined #ruby
donofrio has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
donofrio has joined #ruby
nviroepah9832 has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
teclator has joined #ruby
artemon has joined #ruby
random-jellyfish has quit [Quit: Client closed]
ur5us has quit [Ping timeout: 268 seconds]
perrierjouet has joined #ruby
robotmay has quit [Quit: No Ping reply in 180 seconds.]
robotmay has joined #ruby
o|||||o has joined #ruby
markong has joined #ruby
oxfuxxx has joined #ruby
wand has quit [Remote host closed the connection]
agrosant has quit [Read error: Connection reset by peer]
agrosant has joined #ruby
wand has joined #ruby
donofrio has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
donofrio has joined #ruby
ua_ has joined #ruby
oxfuxxx has quit [Quit: [H]EAT ROX FUCK R0X SHIT BRIX.]
perrierjouet has quit [Ping timeout: 272 seconds]
Guest40 has joined #ruby
Guest40 has quit [Client Quit]
dionysus69 has quit [Ping timeout: 268 seconds]
jpn has quit [Ping timeout: 248 seconds]
<ox1eef> it is
jpn has joined #ruby
jpn has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
perrierjouet has joined #ruby
TCZ has joined #ruby
jpn has quit [Ping timeout: 245 seconds]
jpn has joined #ruby
davidw has joined #ruby
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
niv has joined #ruby
some14u has joined #ruby
eddof13 has joined #ruby
dionysus69 has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has quit [Quit: Leaving]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
bit4bit has joined #ruby
swaggboi has quit [Ping timeout: 272 seconds]
<isene> How should I replace a word in a sentence with its downcase substitute? "THIS IS A TEST NOW" -> THIS IS A test NOW"
<isene> ...with a regexp to match TEST
___nick___ has joined #ruby
<havenwood> isene: "THIS IS A TEST NOW".gsub(/TEST/, &:downcase)
<isene> Interesting.
swaggboi has joined #ruby
ivanf has joined #ruby
bit4bit has quit [Ping timeout: 240 seconds]
bit4bit has joined #ruby
<ox1eef> :: "THIS IS A TEST NOW".sub("TEST", &:downcase)
<ruby-eval> => "THIS IS A test NOW"
dza has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
some14u has joined #ruby
<adam12> dorian: Only thing I can think of, tho I'm not sure how it would even happen, is that the mac version is using libedit and not libreadline. IIRC, libedit has no history. But I could be way off base.
<adam12> THIS IS A TEST NOW reminds me of an older US TV commercial for JG Wentworth. NEED CASH NOW
gr33n7007h has quit [Quit: WeeChat 3.5]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
belak has left #ruby [The Lounge - https://thelounge.chat]
bit4bit has quit [Ping timeout: 240 seconds]
roadie has quit [Ping timeout: 240 seconds]
TomyWork has joined #ruby
some14u has joined #ruby
roadie has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roadie has quit [Ping timeout: 252 seconds]
<havenwood> :: "THIS IS A TEST NOW".tr("TEST", "test")
<ruby-eval> => "tHIs Is A test NOW"
liam has joined #ruby
<havenwood> Spongebob style
roadie has joined #ruby
TomyWork has quit [Changing host]
TomyWork has joined #ruby
gproto23 has joined #ruby
liam has quit [Quit: WeeChat 3.4.1]
szkl has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
jongsta has left #ruby [The Lounge - https://thelounge.chat]
Sheilong has joined #ruby
some14u has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
some14u has quit [Ping timeout: 260 seconds]
oxfuxxx has joined #ruby
markong has quit [Ping timeout: 260 seconds]
hololeap_ has quit [Ping timeout: 240 seconds]
hololeap_ has joined #ruby
TomyWork has quit [Quit: Leaving]
nviroepah9832 has quit [Ping timeout: 268 seconds]
jpn has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
<adam12> heh
<adam12> :: "THIS IS A TEST NOW".gsub(/./) { rand(99).even?? _1.upcase : _1.downcase }
<ruby-eval> => "ThIs Is A tEST NoW"
jpn has quit [Ping timeout: 245 seconds]
<isene> havenwood: TIL about the &:
<isene> = nice
bit4bit has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
jpn has joined #ruby
___nick___ has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
nirvdrum has joined #ruby
jpn has joined #ruby
TCZ has joined #ruby
some14u has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jpn has quit [Ping timeout: 246 seconds]
ivanf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13_ has joined #ruby
ivanf has joined #ruby
eddof13_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swaggboi has quit [Ping timeout: 268 seconds]
eddof13_ has joined #ruby
swaggboi has joined #ruby
reset has joined #ruby
<leftylink> oh dear... should I do something garish with the gsub
ua_ has quit [Read error: Connection reset by peer]
eddof13_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ua_ has joined #ruby
___nick___ has quit [Ping timeout: 246 seconds]
eddof13_ has joined #ruby
jpn has joined #ruby
gproto23 has quit [Remote host closed the connection]
jpn has quit [Ping timeout: 260 seconds]
eddof13_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivanf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leftylink> pandabot: rbputs c=[0,4,8,9,11,12,13]; "lorem ipsum dolor sit amet".gsub(/./) { "\003%02d,%02d%s" % c.sample(2).push(_1) }
<pandabot> lorem ipsum dolor sit amet - https://carc.in/#/r/czv3
<leftylink> that... is quite garish indeed
<oz> :)
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
ivanf has joined #ruby
o|||||o has quit [Ping timeout: 272 seconds]
<adam12> lol
* adam12 slaps leftylink around a bit with a large trout
eddof13_ has joined #ruby
r3m has quit [Quit: WeeChat 3.6-dev]
dionysus69 has joined #ruby
markong has joined #ruby
eddof13_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hololeap has joined #ruby
hololeap_ has quit [Ping timeout: 240 seconds]
ivanf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpn has joined #ruby
o|||||o has joined #ruby
ivanf has joined #ruby
ua_ has quit [Ping timeout: 268 seconds]
ua__ has joined #ruby
ur5us has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
donofrio has quit [Ping timeout: 268 seconds]
eddof13_ has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 260 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 248 seconds]
TCZ has quit [Quit: Leaving]
jpn has joined #ruby
markong has quit [Ping timeout: 248 seconds]
<ox1eef> does ruby have an "in" operator like JS? eg, "foo" in {foo: 1}
<ox1eef> i seem to remember a new syntax like that
jpn has quit [Ping timeout: 246 seconds]
hololeap has quit [Ping timeout: 240 seconds]
hololeap has joined #ruby
eddof13_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
markong has joined #ruby
markong has quit [Client Quit]
<weaksauce> don't think so for a specific extra syntax
<weaksauce> but functions can do it easily
<newton> ox1eef, you're thinking about pt
<newton> lol
<newton> was just about to link that
<ox1eef> cool, i need to read up on that
<newton> seems like that "in" usage is specific to using case though
<newton> otherwise you're just looking for hash.key?(:x) or [a, b, c].include?(c)
<ox1eef> thats not the impression i got:
<ox1eef> Or with the => operator and the in operator, which can be used in a standalone expression:
<ox1eef> irb(main):001:0> "foo" in {foo: 1}
<ox1eef> => falseY
<ox1eef> so cool
<ox1eef> i have to learn more about this
<newton> the "whilst the => operator is most useful" example has the usage
<newton> if you intend to use it like that it looks good
<ox1eef> it is not specfic to case though. amazingly it works very similar to JS.
<newton> destructuring is nice
<newton> method overloading when
<ox1eef> i want to learn how it works for objects of your own
<ox1eef> bbl
jpn has joined #ruby
Sheilong has quit [Quit: Connection closed for inactivity]
r3m has joined #ruby
eddof13 has joined #ruby
hololeap_ has joined #ruby
hololeap has quit [Ping timeout: 240 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
jmcgnh has quit [Ping timeout: 260 seconds]
bit4bit has quit [Remote host closed the connection]
jmcgnh has joined #ruby
jpn has quit [Quit: leaving]
szkl has quit [Quit: Connection closed for inactivity]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]