baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.4.6: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
batcat84 has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
apparition has joined #ruby
lel has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
AJA4350 has quit [Quit: AJA4350]
lel has quit [Ping timeout: 258 seconds]
batcat84 has joined #ruby
<batcat84> al2o3-cr: I was able to upgrade to Ruby 2.6.3 so I think it worked.
jottr has quit [Ping timeout: 250 seconds]
<al2o3-cr> batcat84: great!
<al2o3-cr> you can prepend the path but i feel this is the best way.
Inside has joined #ruby
* Inside sighs
<Inside> Ruby.
<Inside> Why do you not have a scientific plotting library that can plot tents of thousands of points in real time :'(
batcat84 has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
al-damiri has quit [Quit: Connection closed for inactivity]
jottr has quit [Ping timeout: 248 seconds]
houhoulis has quit [Remote host closed the connection]
jottr has joined #ruby
Liothen has quit [Quit: The Dogmatic Law of Shadowsong]
Liothen_ has joined #ruby
Liothen_ has quit [Client Quit]
Liothen_ has joined #ruby
Liothen_ has quit [Client Quit]
Liothen has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
zxq2 has joined #ruby
u0_a238 has quit [Remote host closed the connection]
nowhereman has joined #ruby
nowhereman has quit [Read error: Connection reset by peer]
nowhereman has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
jottr has joined #ruby
xdrxs has quit [Quit: Leaving]
jottr has quit [Ping timeout: 250 seconds]
dsmythe has quit [Read error: Connection reset by peer]
dsmythe has joined #ruby
beeshk has quit [Quit: beeshk]
apparition has quit [Quit: Bye]
beeshk has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
Swyper has joined #ruby
ramfjord has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
houhoulis has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
dar123 has joined #ruby
beeshk has quit [Quit: beeshk]
fphilipe_ has joined #ruby
jottr has joined #ruby
dsmythe has quit [Ping timeout: 244 seconds]
fphilipe_ has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 246 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
skyikot has joined #ruby
suryc has joined #ruby
Swyper has quit [Remote host closed the connection]
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
jaequery has joined #ruby
djdduty has quit [Ping timeout: 250 seconds]
suryc has quit [Ping timeout: 245 seconds]
djdduty has joined #ruby
jottr has joined #ruby
jcalla has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rhuang has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
dar123 has quit [Quit: Textual IRC Client: www.textualapp.com]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
braincrash has quit [Quit: bye bye]
jottr has quit [Ping timeout: 252 seconds]
braincrash has joined #ruby
jaequery has joined #ruby
laaron- has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
gix has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
ramfjord has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 246 seconds]
yokel has quit [Remote host closed the connection]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
dsmythe has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
code_zombie has quit [Quit: Leaving]
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
jottr has joined #ruby
houhoulis has quit [Remote host closed the connection]
fphilipe_ has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
endemic has quit [Ping timeout: 276 seconds]
endemic has joined #ruby
fphilipe_ has quit [Ping timeout: 248 seconds]
Tharbakim has joined #ruby
Tharbakim has quit [Changing host]
Tharbakim has joined #ruby
skyikot has quit [Remote host closed the connection]
jottr has joined #ruby
sonivi has joined #ruby
sonivi has quit [Client Quit]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
ur5us has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
jenrzzz has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
dellavg_ has joined #ruby
jottr has joined #ruby
hightower2 has joined #ruby
Inside has quit [Read error: Connection reset by peer]
Inline has quit [Quit: Leaving]
jottr has quit [Ping timeout: 248 seconds]
pwnd_nsfw has joined #ruby
hightower2 has quit [Ping timeout: 246 seconds]
UncleCid__ has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 248 seconds]
conta has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
Dbugger has joined #ruby
Dbugger has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
localhostdotdev has joined #ruby
blackmesa has joined #ruby
localhostdotdev has left #ruby [#ruby]
cd has quit [Quit: cd]
jottr has quit [Ping timeout: 244 seconds]
LinuxKnight has joined #ruby
jottr has joined #ruby
jenrzzz has joined #ruby
aupadhye has joined #ruby
fphilipe_ has joined #ruby
djdduty has quit [Ping timeout: 252 seconds]
djdduty has joined #ruby
cthulchu has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
clemens3 has quit [Ping timeout: 252 seconds]
fphilipe_ has quit [Read error: Connection reset by peer]
hightower2 has joined #ruby
Swyper has joined #ruby
conta has quit [Read error: Connection reset by peer]
conta1 has joined #ruby
fphilipe_ has joined #ruby
conta1 is now known as conta
nowhereman has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
blackmesa has quit [Quit: WeeChat 2.4]
clemens3 has joined #ruby
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
akosednar has quit [Ping timeout: 245 seconds]
akosednar has joined #ruby
akosednar has quit [Changing host]
akosednar has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
<al2o3-cr> &>> class String alias | unpack1 end; "TW9ybmluZw==" | 'm0'
<rubydoc> # => "Morning" (https://carc.in/#/r/6up2)
<al2o3-cr> what a day to be alive!
jottr has quit [Ping timeout: 246 seconds]
jefffrails35 has joined #ruby
chaus has quit [Remote host closed the connection]
jottr has joined #ruby
jenrzzz has joined #ruby
cgfbee has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
Emmanuel_Chanel has quit [Ping timeout: 245 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
kyrylo has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
ellcs has joined #ruby
axsuul has quit [Ping timeout: 245 seconds]
vondruch has quit [Quit: vondruch]
wildermind has joined #ruby
axsuul has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
nowhereman has joined #ruby
jottr has joined #ruby
ramfjord has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
papcx82 has quit [Quit: The Lounge - https://thelounge.chat]
jottr has quit [Ping timeout: 258 seconds]
chaus has joined #ruby
papcx82 has joined #ruby
jottr has joined #ruby
Swyper has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
jottr has quit [Ping timeout: 244 seconds]
jottr has joined #ruby
papcx82 has quit [Remote host closed the connection]
vondruch has joined #ruby
<balo> i wouldn't be able to tell what is this doing ^^
papcx82 has joined #ruby
rafadc has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
ur5us has joined #ruby
jottr has joined #ruby
chaus has quit [Remote host closed the connection]
laaron has quit [Remote host closed the connection]
rafadc has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
laaron has joined #ruby
jottr has joined #ruby
Swyper has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
tdy has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
iMadper has quit [Quit: ZNC 1.7.3 - https://znc.in]
iMadper has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jottr has quit [Ping timeout: 245 seconds]
chaus has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
jottr has joined #ruby
chaus has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 246 seconds]
Mike11 has joined #ruby
arthurwozniak has joined #ruby
jottr has joined #ruby
arthurwozniak has quit [Quit: Page closed]
jottr has quit [Ping timeout: 248 seconds]
canton7 has quit [Quit: ZNC - http://znc.in]
canton7 has joined #ruby
canton7 has quit [Client Quit]
jenrzzz has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
chaus has joined #ruby
jottr has joined #ruby
chaus has quit [Remote host closed the connection]
canton7 has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
chaus has joined #ruby
ramfjord has joined #ruby
jottr has joined #ruby
tdy has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 248 seconds]
chaus has quit [Remote host closed the connection]
chaus has joined #ruby
jottr has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
queip has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 248 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
tdy has quit [Ping timeout: 258 seconds]
jottr has quit [Ping timeout: 252 seconds]
conta has quit [Ping timeout: 268 seconds]
hightower2 has quit [Ping timeout: 252 seconds]
Emmanuel_Chanel has joined #ruby
jottr has joined #ruby
queip has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
AJA4350 has joined #ruby
beeshk has joined #ruby
beeshk has quit [Client Quit]
jottr has joined #ruby
jefffrails35 has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 255 seconds]
Mike11 has quit [Quit: Leaving.]
jefffrails35 has joined #ruby
gdrc has joined #ruby
<gdrc> hello, ruby newbie here. is there a framework/library that reads input from different sources using the chain of responsibility pattern?
jottr has joined #ruby
<gdrc> just to explain, i'm writing a command line tool where the input could be read as 1. parameter in the shell 2. environmental variable 3. from a YAML file
conta has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
Swyper has quit [Remote host closed the connection]
jottr has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
kyrylo has joined #ruby
chaus has quit [Remote host closed the connection]
jmcgnh has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
reber has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
LinuxKnight has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
mikecmpbll has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
ldnunes has joined #ruby
chaus has joined #ruby
Swyper has joined #ruby
Ai9zO5AP has joined #ruby
chaus has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
chaus has joined #ruby
jenrzzz has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
Swyper has quit [Remote host closed the connection]
jottr has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
Swyper has quit [Remote host closed the connection]
jottr has joined #ruby
<al2o3-cr> Ruby.
jottr has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
ebbflowgo has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
chaus has quit [Remote host closed the connection]
chaus has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
chaus has quit [Ping timeout: 250 seconds]
jcalla has joined #ruby
jenrzzz has joined #ruby
tdy has joined #ruby
jottr has joined #ruby
cthulchu has joined #ruby
cd has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
dsmythe has quit [Read error: Connection reset by peer]
dsmythe has joined #ruby
cthu| has joined #ruby
jottr has joined #ruby
cthulchu has quit [Ping timeout: 248 seconds]
djdduty has quit [Ping timeout: 250 seconds]
djdduty has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
jenrzzz has quit [Ping timeout: 268 seconds]
jottr has quit [Ping timeout: 246 seconds]
Tempesta has quit [Read error: Connection reset by peer]
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
laaron has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
pupsikov has joined #ruby
jottr has joined #ruby
aupadhye has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 252 seconds]
chaus has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
weird_error has quit [Quit: weird_error]
chaus has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
jenrzzz has joined #ruby
lucasb has joined #ruby
gnufied has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
jottr has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 268 seconds]
cthu| has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
AJA4350 has quit [Quit: AJA4350]
Inline has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
spacesuitdiver has joined #ruby
thadtheman has quit [Read error: Connection reset by peer]
hightower2 has joined #ruby
jottr has joined #ruby
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
conta has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
chaus has joined #ruby
moei has joined #ruby
planigan has quit [Ping timeout: 246 seconds]
Rudd0^ has quit [Ping timeout: 244 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
cthulchu_ has joined #ruby
kapil____ has joined #ruby
ellcs has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
Rudd0 has joined #ruby
hightower2 has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 258 seconds]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
spacesuitdiver has joined #ruby
spacesuitdiver has quit [Client Quit]
spacesuitdiver has joined #ruby
houhoulis has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> gdrc: OptionParser with ENV and Psych!
jottr has joined #ruby
jenrzzz has joined #ruby
nowhereman has quit [Ping timeout: 248 seconds]
<depesz> hi. is there any simple way to split array into array of arrays with up to N elements?
<depesz> i can write a loop, but perhaps there is some idiomatic way to do it
jottr has quit [Ping timeout: 245 seconds]
Dbugger has joined #ruby
tdy has joined #ruby
<adam12> depesz: Enumerable#each_slice is likely what you're looking for.
<depesz> adam12: yes, it is. thanks a lot.
jaequery has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
m27frogy has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 252 seconds]
jmcgnh has joined #ruby
polishdub has joined #ruby
jmcgnh has quit [Client Quit]
jottr has joined #ruby
m27frogy has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
ukd1 has quit [Quit: Lost terminal]
Dbugger has quit [Quit: Leaving]
agent_white has joined #ruby
chaus has quit [Remote host closed the connection]
GodFather has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
tdy has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
duderonomy has joined #ruby
rippa has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
orbyt_ has joined #ruby
m27frogy has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
wildermind has quit [Quit: Connection closed for inactivity]
jottr has quit [Ping timeout: 252 seconds]
jmcgnh has joined #ruby
jmcgnh has quit [Client Quit]
jottr has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 252 seconds]
rhuang has joined #ruby
chaus has joined #ruby
m_antis has quit [Quit: m_antis]
haengma has joined #ruby
conta has joined #ruby
m_antis has joined #ruby
jottr has joined #ruby
chaus has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
m_antis_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m_antis has quit [Ping timeout: 244 seconds]
fphilipe_ has quit [Read error: Connection reset by peer]
m27frogy has joined #ruby
jottr has joined #ruby
m_antis has joined #ruby
m_antis_ has quit [Ping timeout: 244 seconds]
m_antis has quit [Read error: Connection reset by peer]
m_antis has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
planigan has joined #ruby
jefffrails35 has quit [Remote host closed the connection]
jefffrails35 has joined #ruby
hightower2 has joined #ruby
scientes has joined #ruby
<scientes> how do i get EVERY regexp match?
jottr has joined #ruby
<scientes> there is no .each or .match_all et cetera
fphilipe_ has joined #ruby
<havenwood> scientes: #scan
<havenwood> scientes: or the match return value includes all matches
jottr has quit [Ping timeout: 252 seconds]
clemens3 has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
nowhereman has joined #ruby
fphilipe_ has quit [Read error: Connection reset by peer]
eckhardt has joined #ruby
jefffrails35 has quit [Read error: Connection reset by peer]
eckhardt has quit [Client Quit]
jottr has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
rhuang has quit [Remote host closed the connection]
m_antis_ has joined #ruby
duderonomy has joined #ruby
fphilipe_ has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
m_antis has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 258 seconds]
rhuang has joined #ruby
pupsikov has joined #ruby
jenrzzz has joined #ruby
brendan- has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
<havenwood> all captures*
jottr has quit [Ping timeout: 246 seconds]
<havenwood> scientes: do you mean overlapping matches, or just consecutive matches?
<scientes> consecuritve
<scientes> it worked, thanks
<havenwood> &>> 'abcd'.scan /../
<rubydoc> # => ["ab", "cd"] (https://carc.in/#/r/6uvf)
fphilipe_ has quit [Ping timeout: 252 seconds]
clemens3 has joined #ruby
jottr has joined #ruby
<havenwood> &>> s = 'abcde'; pattern = /../; 1.upto(s.size).flat_map { |n| s.each_char.each_cons(n).map { |chars| chars.join.match(pattern)&.to_s } }.compact.uniq
<rubydoc> # => ["ab", "bc", "cd", "de"] (https://carc.in/#/r/6uvh)
chaus has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
chaus has quit [Ping timeout: 246 seconds]
tsrt^ has quit []
jottr has joined #ruby
ramfjord has joined #ruby
chaus has joined #ruby
abaiste^ has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
kapil____ has quit [Quit: Connection closed for inactivity]
r29v has joined #ruby
AJA4350 has joined #ruby
jottr has joined #ruby
jefffrails35 has joined #ruby
jefffrails35 has quit [Read error: Connection reset by peer]
<baweaver> &>> 'abcde'.chars.each_cons(2).to_a.map(&:join)
<rubydoc> # => ["ab", "bc", "cd", "de"] (https://carc.in/#/r/6uvj)
jottr has quit [Ping timeout: 252 seconds]
nowhereman has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
SuperL4g has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
SuperLag has quit [Ping timeout: 244 seconds]
SuperLag has joined #ruby
r29v has quit [Quit: r29v]
SuperL4g has quit [Ping timeout: 252 seconds]
postmodern has joined #ruby
r29v has joined #ruby
jmcgnh has joined #ruby
jenrzzz has joined #ruby
jmcgnh has quit [Client Quit]
OneNeptune has joined #ruby
jottr has joined #ruby
OneNeptune has quit [Client Quit]
m_antis_ has quit [Quit: m_antis_]
jottr has quit [Ping timeout: 248 seconds]
fphilipe_ has joined #ruby
spacesuitdiver has quit [Remote host closed the connection]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
AJA4350 has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
zapata has quit [Quit: WeeChat 2.4]
yokel has joined #ruby
ldnunes has quit [Ping timeout: 258 seconds]
yokel has quit [Client Quit]
cthu| has joined #ruby
jottr has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
cthulchu_ has quit [Ping timeout: 248 seconds]
dellavg_ has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 252 seconds]
yokel has joined #ruby
jottr has joined #ruby
ldnunes has joined #ruby
yokel has quit [Ping timeout: 252 seconds]
yokel has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
conta has quit [Quit: conta]
jottr has quit [Ping timeout: 248 seconds]
tdy has joined #ruby
yokel has quit [Ping timeout: 252 seconds]
yokel has joined #ruby
yokel has quit [Ping timeout: 250 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
Eiam has quit [Ping timeout: 276 seconds]
yokel has joined #ruby
jottr has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
AJA4350 has joined #ruby
yokel has quit [Ping timeout: 252 seconds]
yokel has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
<havenwood> baweaver: I guess that's a bad example regexp! :P
<havenwood> &>> s = 'aeibeiiacde'; pattern = /[aeiou]{1,3}/; 1.upto(s.size).flat_map { |n| s.each_char.each_cons(n).map { |chars| chars.join.match(pattern)&.to_s } }.compact.uniq
<rubydoc> # => ["a", "e", "i", "ae", "ei", "ii", "ia", "aei", "eii", "iia"] (https://carc.in/#/r/6uw1)
maryo has joined #ruby
<havenwood> i don't like the code anyway - pre-coffee rambling
yokel has quit [Remote host closed the connection]
yokel has joined #ruby
jottr has joined #ruby
haengma has quit [Remote host closed the connection]
chaus has quit [Remote host closed the connection]
tdy has quit [Ping timeout: 246 seconds]
yokel has quit [Ping timeout: 252 seconds]
haengma has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
yokel has joined #ruby
haengma has quit [Remote host closed the connection]
ramfjord_ has joined #ruby
yokel has quit [Remote host closed the connection]
yokel has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
brendan- has joined #ruby
jottr has joined #ruby
fphilipe_ has quit [Ping timeout: 248 seconds]
chaus has joined #ruby
yokel has quit [Ping timeout: 250 seconds]
Nicmavr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
_whitelogger_ has joined #ruby
jottr has joined #ruby
agent_wh1te has joined #ruby
polishdu1 has joined #ruby
sh7d_ has joined #ruby
sameerynho has joined #ruby
gix has joined #ruby
segy_ has joined #ruby
Rudd0^ has joined #ruby
SeepingN has joined #ruby
djdduty has quit [Ping timeout: 248 seconds]
brendan- has quit [Ping timeout: 248 seconds]
Rudd0 has quit [Ping timeout: 248 seconds]
Xeago has quit [Ping timeout: 248 seconds]
Xeago_ is now known as Xeago
kyrylo has quit [Ping timeout: 248 seconds]
Tharbakim has quit [Ping timeout: 248 seconds]
Liothen has quit [Ping timeout: 248 seconds]
lxsameer has quit [Ping timeout: 248 seconds]
sh7d has quit [Ping timeout: 248 seconds]
bga57 has quit [Ping timeout: 248 seconds]
segy has quit [Ping timeout: 248 seconds]
leah2 has quit [Ping timeout: 248 seconds]
agent_white has quit [Ping timeout: 248 seconds]
polishdub has quit [Ping timeout: 248 seconds]
reber has quit [Ping timeout: 248 seconds]
postmodern has quit [Ping timeout: 248 seconds]
planigan has quit [Ping timeout: 248 seconds]
rafadc has quit [Ping timeout: 248 seconds]
vondruch has quit [Ping timeout: 248 seconds]
endemic has quit [Ping timeout: 248 seconds]
braincrash has quit [Ping timeout: 248 seconds]
pwnd_nsfw has quit [Ping timeout: 248 seconds]
Milos has quit [Ping timeout: 248 seconds]
Xiti has quit [Ping timeout: 248 seconds]
_whitelogger has quit [Ping timeout: 248 seconds]
endemic has joined #ruby
yokel has joined #ruby
leah2_ has joined #ruby
Liothen_ is now known as Liothen
braincra- has joined #ruby
bga57 has joined #ruby
segy_ is now known as segy
djdduty has joined #ruby
Tharbakim has joined #ruby
Tharbakim has quit [Changing host]
Tharbakim has joined #ruby
joast has quit [Quit: Leaving.]
jottr has quit [Ping timeout: 261 seconds]
chaus has quit []
haengma has joined #ruby
planigan has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
jottr has joined #ruby
tdy has joined #ruby
maryo has quit [Quit: Leaving]
joast has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
spiette has quit [Quit: ZNC 1.7.3 - https://znc.in]
tdy has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
fphilipe_ has joined #ruby
spiette has joined #ruby
jottr has joined #ruby
fphilipe_ has quit [Ping timeout: 264 seconds]
fphilipe_ has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
fphilipe_ has quit [Ping timeout: 252 seconds]
r29v has quit [Ping timeout: 244 seconds]
hightower2 has quit [Changing host]
hightower2 has joined #ruby
yokel has quit [Ping timeout: 246 seconds]
yokel has joined #ruby
jenrzzz has joined #ruby
jottr has joined #ruby
Ai9zO5AP has quit [Quit: WeeChat 2.4]
sh7d_ has quit [Quit: meh]
sh7d has joined #ruby
ramfjord_ has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
leah2_ is now known as leah2
jottr has joined #ruby
fphilipe_ has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
plujon has quit [Quit: ERC (IRC client for Emacs 25.2.2)]
jmcgnh has joined #ruby
jmcgnh has quit [Client Quit]
jottr has joined #ruby
agent_wh1te has quit [Quit: brb]
lucasb has joined #ruby
epochwolf has quit [Quit: Connection closed for inactivity]
jottr has quit [Ping timeout: 248 seconds]
Milos_ is now known as Milos
ldnunes has quit [Ping timeout: 246 seconds]
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
Nicmavr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
OneNeptune has joined #ruby
fphilipe_ has quit [Ping timeout: 248 seconds]
jottr has quit [Ping timeout: 248 seconds]
nogic has joined #ruby
jottr has joined #ruby
jcalla has quit [Quit: Leaving]
Milos has quit [Quit: ZNC 1.7.3 - https://znc.in]
jottr has quit [Ping timeout: 246 seconds]
Milos has joined #ruby
ur5us has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
Kestrel-029 has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
csr_ has joined #ruby
code_zombie has joined #ruby
plujon has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
Nicmavr has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
Kestrel-029 has quit [Ping timeout: 245 seconds]
csr_ has left #ruby ["Leaving"]
tdy has joined #ruby
jottr has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
plujon has quit [Quit: ERC (IRC client for Emacs 25.2.2)]
tdy has quit [Ping timeout: 248 seconds]
jottr has quit [Ping timeout: 248 seconds]
SeepingN has quit [Remote host closed the connection]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
fphilipe_ has joined #ruby
jmcgnh has joined #ruby
SeepingN has joined #ruby
jottr has joined #ruby
jmcgnh has quit [Client Quit]
tdy has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
scientes has quit [Remote host closed the connection]
scientes has joined #ruby
jottr has joined #ruby
Fernando-Basso has joined #ruby
dsmythe_ has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
OneNeptune has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dsmythe has quit [Ping timeout: 255 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
scientes has quit [Ping timeout: 264 seconds]
Eiam has joined #ruby
jottr has joined #ruby
SeepingN has joined #ruby
tdy has quit [Ping timeout: 244 seconds]
jmcgnh has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
dsmythe has joined #ruby
jmcgnh has quit [Client Quit]
jmcgnh has joined #ruby
dsmythe_ has quit [Ping timeout: 264 seconds]
hightower3 has joined #ruby
jottr has joined #ruby
jmcgnh has quit [Client Quit]
hightower2 has quit [Ping timeout: 246 seconds]
fphilipe_ has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 248 seconds]
jmcgnh has joined #ruby
jmcgnh has quit [Client Quit]
jenrzzz has joined #ruby
jottr has joined #ruby
polishdu1 has quit [Remote host closed the connection]
lucasb has quit [Quit: Connection closed for inactivity]
<adam12> I wonder what goodies RubyVM::AbstractSyntaxTree will eventually yield
jottr has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
jmcgnh has joined #ruby
tdy has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
jottr has joined #ruby
jmcgnh has joined #ruby
lemoi has joined #ruby
tdy has quit [Ping timeout: 244 seconds]
<lemoi> is there an easy way of achieving this: https://dpaste.de/VUHh
bhaak has quit [Ping timeout: 268 seconds]
jmcgnh has quit [Client Quit]
bhaak has joined #ruby
OneNeptune has joined #ruby
<lemoi> I'm basically trying to convert a yaml dictionary into cmdline arguments
jottr has quit [Ping timeout: 244 seconds]
Fernando-Basso has quit [Remote host closed the connection]
jmcgnh has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
jenrzzz has joined #ruby
jmcgnh has quit [Client Quit]
jmcgnh has joined #ruby
kyrylo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 252 seconds]
sameerynho has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
jmcgnh has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
Kestrel-029 has joined #ruby
ramfjord has joined #ruby
jottr has joined #ruby
dviola has joined #ruby
jmcgnh has quit [Client Quit]
neplushko has joined #ruby
<adam12> lemoi: map and join.
jmcgnh has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
rhuang has quit [Ping timeout: 246 seconds]
<al2o3-cr> adam12: like this? {"-foo-bar"=>"xxx", "-bar-baz"=>"yyy"}.map { |cmd_args| cmd_args.join ' ' }
<al2o3-cr> that what i had in mind but wasn't sure
ramfjord has joined #ruby
<lemoi> adam12 works perfectly
GodFather has quit [Ping timeout: 252 seconds]
fphilipe_ has joined #ruby
jmcgnh has quit [Client Quit]
<adam12> al2o3-cr: Might have worked? But I guess I'd call that map and join and join.
tdy has joined #ruby
<adam12> &>> {"-foo-bar" => "xxx", "-bar-baz" => "yyy"}.map {|*attr| attr.join(" ") }.join(" ")
<neplushko> hello, folks! i don't rly understand one moment. I've got a = []. and when I do a = (1..4).map {|x| a << x} my a becomes [[1,2,3,4], [1,2,3,4], [1,2,3,4], [1,2,3,4]]. can someone explain me this? thanks in advance
<rubydoc> # => "-foo-bar xxx -bar-baz yyy" (https://carc.in/#/r/6uxi)
<al2o3-cr> adam12: oh! i see what mean.
jottr has joined #ruby
<havenwood> neplushko: #map already implicitly builds a new collection from each iteration's return value. by manually also shoveling on, you're mutating `a`.
<adam12> neplushko: Not sure I follow exactly, but Arrays are passed by reference. You're mutating the same Array.
<havenwood> neplushko: The `a << x` changes `a`.
<adam12> &>> a = []; a = (1..4).map {|x| a << x }
jmcgnh has joined #ruby
<rubydoc> # => [[1, 2, 3, 4], [1, 2, 3, 4], [1, 2, 3, 4], [1, 2, 3, 4]] (https://carc.in/#/r/6uxj)
<adam12> &>> [1] << 2
<rubydoc> # => [1, 2] (https://carc.in/#/r/6uxk)
<adam12> &>> a = [].freeze; a = (1..4).map {|x| a << x }
<rubydoc> stderr: -e:2:in `block in <main>': can't modify frozen Array (FrozenError) (https://carc.in/#/r/6uxl)
<neplushko> havenwood: so, if I got it in the right way, when I use 'a << x', #map returns [1,2,3,4] to #a four times?
<havenwood> neplushko: note the return value of each iterations is just whatever `a` is
tdy has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 248 seconds]
<havenwood> neplushko: throughout the mapping, you add each digit to `a`
<havenwood> neplushko: by the end, you have: [a, a, a, a]
<havenwood> neplushko: and `a` is: [1, 2, 3, 4]
<havenwood> neplushko: you're mapping to a new array that is `a` 4 times, and in the process you're shoveling 1-4 onto `a`, which you see in the end
<adam12> neplushko: Are you just trying to understand what's happening or is this something your experiencing?
<al2o3-cr> &>> a = []; a << a
<rubydoc> # => [[...]] (https://carc.in/#/r/6uxm)
<neplushko> havenwood: ah, got it! thank you so much!
<al2o3-cr> them three dots indicate self reference
<neplushko> adam12: I'm trying to understand
nogic has quit [Ping timeout: 246 seconds]
clemens3 has quit [Ping timeout: 246 seconds]
clemens3_ has joined #ruby
<phaul> &>> a = [1,2]; b = a; a << 3; b # there can be many variables pointing to the same object
<rubydoc> # => [1, 2, 3] (https://carc.in/#/r/6uxn)
<neplushko> many thanks to all of you!
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
<neplushko> I'm sorry if my question seemed too childish and stupid :p
<adam12> neplushko: Not at all. Mutation catches many experienced developers. It's good to understand.
jmcgnh has joined #ruby
<phaul> &>> a = Array.new(3, [1]) ; a[0] << 1; a
<rubydoc> # => [[1, 1], [1, 1], [1, 1]] (https://carc.in/#/r/6uxo)
<phaul> it can be tricky
jottr has joined #ruby
<neplushko> @adam12 well, anyway I have felt embarassed because this moment seemed a little bit tricky as for me and I couldn't understand why it happens in that way
scientes has joined #ruby
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
GodFather has joined #ruby
<havenwood> neplushko: it's understandably confusing
<havenwood> almost like a sleight of hand trick - you have to watch carefully to see the digits getting slipped under the cup into the array
jottr has quit [Ping timeout: 250 seconds]
jmcgnh has joined #ruby
<neplushko> havenwood: true, true
<havenwood> just published an article on Ruby 3 news from RubyKaigi: https://developer.squareup.com/blog/rubykaigi-and-the-path-to-ruby-3
jmcgnh has quit [Client Quit]
jottr has joined #ruby
<adam12> havenwood: Nice.
laaron has quit [Remote host closed the connection]
Nirvash has quit [Quit: Ping timeout (120 seconds)]
Nirvash has joined #ruby
<adam12> havenwood: Did you see a talk on "Threadlets" at RubyKaigi? I dont' remember seeing one on the schedule.
abaiste^ has quit [Remote host closed the connection]
laaron has joined #ruby
mostlybadfly has quit [Ping timeout: 246 seconds]
abaiste^ has joined #ruby
abaiste^ has quit [Max SendQ exceeded]
jmcgnh has joined #ruby
abaiste^ has joined #ruby
abaiste^ has quit [Max SendQ exceeded]
abaiste^ has joined #ruby
abaiste^ has quit [Max SendQ exceeded]
abaiste^ has joined #ruby
abaiste^ has quit [Max SendQ exceeded]
Sp4rKy has quit [Ping timeout: 245 seconds]
abaiste^ has joined #ruby
abaiste^ has quit [Max SendQ exceeded]
<havenwood> adam12: You're right, it didn't have a discrete talk, but I gave it a shoutout because Matz and ioquatix both mentioned it in their talks.
jottr has quit [Ping timeout: 250 seconds]
<adam12> havenwood: No worries. I only saw references to it on the bug tracker and wondered if there was more going on that I wasn't aware of.
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Sp4rKy has joined #ruby