havenwood changed the topic of #ruby to: Ruby 3.2.2, 3.1.4, 3.3.0-preview3: https://www.ruby-lang.org | Rules: https://ruby-community.com | Logs: https://libera.irclog.whitequark.org/ruby
ua_ has quit [Ping timeout: 260 seconds]
pounce has joined #ruby
meimei has joined #ruby
white_magic has joined #ruby
bambanxx has joined #ruby
white_magic has quit [Quit: Client closed]
m_antis has joined #ruby
white_magic has joined #ruby
white_magic60 has joined #ruby
white_magic has quit [Killed (NickServ (GHOST command used by white_magic60))]
white_magic60 is now known as white_magic
white_magic has quit [Client Quit]
white_magic has joined #ruby
white_magic has quit [Ping timeout: 250 seconds]
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bambanxx has joined #ruby
peterbecich has joined #ruby
grenierm has joined #ruby
ua_ has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 240 seconds]
edr has quit [Quit: Leaving]
peterbecich has quit [Ping timeout: 246 seconds]
caedmon has joined #ruby
Linux_Kerio has joined #ruby
fercell has joined #ruby
fercell_ has quit [Ping timeout: 264 seconds]
caedmon has quit [Ping timeout: 268 seconds]
caedmon has joined #ruby
grenierm has quit [Ping timeout: 250 seconds]
caedmon has quit [Ping timeout: 256 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
peterbecich has joined #ruby
slurpyb has joined #ruby
slurpyb has quit [Max SendQ exceeded]
slurpyb has joined #ruby
grenierm has joined #ruby
_ht has joined #ruby
constxqt_ has quit [Ping timeout: 255 seconds]
grenierm has quit [Quit: Client closed]
grenierm has joined #ruby
constellati0n has quit [Ping timeout: 276 seconds]
silurian_invader has quit [Ping timeout: 255 seconds]
peterbecich has quit [Ping timeout: 260 seconds]
_ht has quit [Remote host closed the connection]
teclator has joined #ruby
polishdub has quit [Ping timeout: 255 seconds]
schne1der has joined #ruby
Vonter has quit [Ping timeout: 246 seconds]
mkoncek has joined #ruby
<mkoncek> does Ruby have no other means of writing multiline strings other than heredoc or %X ... X ?
<mkoncek> something like Python's """ ... """
FetidToot has quit [Ping timeout: 268 seconds]
FetidToot has joined #ruby
reset has joined #ruby
<wnd> I'm not sure what you're looking for. Isn't heredoc like Python's """ - or actually the other way around?
<wnd> s/sure/& if I understand/
grenierm has quit [Quit: Client closed]
<mkoncek> kind of, i just don't like comping up with delimiter names
<mkoncek> would be cool if i could use various symbols as delimiters, for example <<""" ... """
reinboar has quit [Ping timeout: 260 seconds]
reinboar has joined #ruby
TomyWork has joined #ruby
dviola has joined #ruby
constellati0n has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
constellati0n has quit [Ping timeout: 252 seconds]
bambanxx has joined #ruby
teclator has joined #ruby
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
Paris has joined #ruby
Paris has quit [Quit: quit]
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bambanxx has joined #ruby
thelounge18 has joined #ruby
reset has quit [Ping timeout: 268 seconds]
brokkoli_origin has quit [Ping timeout: 268 seconds]
reset has joined #ruby
brokkoli_origin has joined #ruby
infinityfye has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bambanxx has joined #ruby
constellati0n has joined #ruby
constellati0n has quit [Ping timeout: 256 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
constxqt_ has joined #ruby
Paris has joined #ruby
constxqt_ has quit [Ping timeout: 264 seconds]
constxqt_ has joined #ruby
constxqt_ has quit [Ping timeout: 245 seconds]
m_antis has quit [Ping timeout: 255 seconds]
constxqt_ has joined #ruby
constellati0n has joined #ruby
constxqt_ has quit [Remote host closed the connection]
constxqt_ has joined #ruby
constellati0n has quit [Ping timeout: 268 seconds]
constxqt_ has quit [Ping timeout: 252 seconds]
Paris has quit [Quit: quit]
constxqt_ has joined #ruby
mkoncek has quit [Quit: mkoncek]
constxqt_ has quit [Ping timeout: 252 seconds]
Vonter has joined #ruby
constxqt_ has joined #ruby
polishdub has joined #ruby
matoro_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
matoro has joined #ruby
peterbecich has joined #ruby
xkoncek has joined #ruby
constellati0n has joined #ruby
peterbecich has quit [Ping timeout: 255 seconds]
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<xkoncek> if i pass a block into a function and instance_eval it, providing local functions, how is the caller able to refer to symbol of outer scopes if they need to?
Vonter has quit [Quit: WeeChat 4.1.1]
Vonter has joined #ruby
bambanxx has joined #ruby
schne1der has quit [Read error: Connection reset by peer]
dviola has quit [Quit: WeeChat 4.1.1]
schne1der has joined #ruby
dstein64- has joined #ruby
dstein64- has quit [Client Quit]
dstein64 has quit [Ping timeout: 260 seconds]
dstein64 has joined #ruby
_ht has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<KOTP> Strings can contain newlines, so yes, multi-line strings are definitely doable using even "\n\n" normal quoting. Triple quotes is not a thing in Ruby, that is just concatenating strings. So `""" ... """` has the effect of wasting cpu cycles for the concatenation, while resulting in `" ... "` since the empty strings between the first two and the last two are concatenated to the single string.
<wnd> xkoncek, probably not the answer you wanted, but you could choose not to override the method. If you don't like the sound of that, you could create an alias for the old with alias_method (or with alias with older Ruby), e.g. "def bar(...); alias_method :foo, :foo_orig" and use that.
Vonter has quit [Ping timeout: 252 seconds]
Vonter has joined #ruby
infinity_fye has joined #ruby
infinityfye has quit [Ping timeout: 256 seconds]
bambanxx has joined #ruby
TomyWork has quit [Remote host closed the connection]
jas-maelstrom has quit [Ping timeout: 256 seconds]
schne1der has quit [Read error: Connection reset by peer]
schne1der has joined #ruby
constellati0n has quit [Ping timeout: 264 seconds]
teclator has quit [Ping timeout: 255 seconds]
edr has joined #ruby
<xkoncek> i think the best solution for my use case is defining @foo lambdas
<xkoncek> is one of the [] .() calling syntaxes for lambdas preferred over the other?
<xkoncek> another question, does `hash[:foo] += 1` do two hash lookups?
<wnd> I guess two, https://carc.in/#/r/g5mw
<xkoncek> i was looking for the whole docs of Hash and i could not find a function which transform a single value given a key where i am provided the old value as well, closest thing was .update but you need to have the value already before the block is called
peterbecich has joined #ruby
peterbecich has quit [Ping timeout: 252 seconds]
___nick___ has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bambanxx has joined #ruby
polishdub has quit [Read error: Connection reset by peer]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
constellati0n has joined #ruby
___nick___ has quit [Ping timeout: 240 seconds]
ua_ has quit [Ping timeout: 276 seconds]
constellati0n has quit [Ping timeout: 240 seconds]
ua_ has joined #ruby
constellati0n has joined #ruby
joako has quit [Quit: quit]
caedmon has joined #ruby
joako has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
_ht has quit [Remote host closed the connection]
bambanxx has joined #ruby
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.]
John_Ivan has joined #ruby
peterbecich has joined #ruby
Paris has joined #ruby
<leftylink> well, there are two cases: 1. the value is immutable, in which case there is no way to achieve the desired effect. 2. the value is mutable, in which case use the one lookup to get the object, then mutate it as desired
Vonter has quit [Ping timeout: 276 seconds]
<leftylink> for example
<leftylink> pandabot rb h = {a: 'adsfadsfsa'}; h[:a].clear; h
<pandabot> {:a=>""} - https://carc.in/#/r/g5n3
peterbecich has quit [Ping timeout: 256 seconds]
Paris has quit [Quit: quit]
Vonter has joined #ruby
mange has joined #ruby
infinity_fye has quit [Quit: Leaving]
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 260 seconds]
desnudopenguino1 is now known as desnudopenguino
schne1der has quit [Ping timeout: 268 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
peterbecich has joined #ruby
Linux_Kerio has quit [Ping timeout: 268 seconds]
peterbecich has quit [Ping timeout: 264 seconds]
Vonter has quit [Ping timeout: 252 seconds]
Vonter has joined #ruby