<hightower2>
Hey folks are you aware of any macro language implemented in Ruby? (By 'macro language' I mean things like m4, but as mentioned, ones implemented in Ruby)
drincruz has joined #ruby
<jhass>
erb?
_aeris has joined #ruby
_aeris_ has quit [Ping timeout: 240 seconds]
_aeris is now known as _aeris_
leitz has joined #ruby
drincruz has quit [Ping timeout: 272 seconds]
gitter1234 has joined #ruby
<apotheon>
I'm not sure I'd consider erb "like m4".
drincruz has joined #ruby
Alexander-47u has joined #ruby
<Alexander-47u>
hi
<Alexander-47u>
what does |x| do
<leitz>
Alexander-47u, if you're iterating through a block, it sets the iterated value to the variable x.
<leitz>
So array.each { |x| puts x } would "puts" each element in the array.
chalkmonster has quit [Quit: WeeChat 2.8]
<Alexander-47u>
thanks!
<jhass>
so you want to always read it as part of the block delimiters, .each { |x| } or .each do |x| end
mikecmpbll has quit [Ping timeout: 256 seconds]
d3bug has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
drincruz has quit [Ping timeout: 260 seconds]
drincruz has joined #ruby
TCZ has quit [Quit: Leaving]
Benett has quit [K-Lined]
Benett has joined #ruby
Xeago has joined #ruby
burningserenity has joined #ruby
burgestrand has joined #ruby
burningserenity has quit [Read error: Connection reset by peer]
burningserenity has joined #ruby
marahin has joined #ruby
burningserenity has quit [Remote host closed the connection]
kristian_on_linu has joined #ruby
nullv4lue has joined #ruby
stdedos has joined #ruby
chalkmonster has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
JasonO has quit [Excess Flood]
JasonO has joined #ruby
ChmEarl has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
hightower2 has quit [Read error: Connection reset by peer]
ellcs has joined #ruby
comet23 has joined #ruby
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
schne1der has quit [Ping timeout: 246 seconds]
stdedos has quit [Quit: Connection closed]
davispuh has joined #ruby
stooj has quit [Ping timeout: 272 seconds]
burgestrand has quit [Quit: burgestrand]
stooj has joined #ruby
cd has quit [Quit: cd]
Garb0 has quit [Read error: Connection reset by peer]
Garb0 has joined #ruby
baojg has joined #ruby
CommunistWolf has quit [Ping timeout: 260 seconds]
conta has quit [Quit: conta]
CommunistWolf has joined #ruby
baojg has quit [Remote host closed the connection]
sergioro has joined #ruby
Garb0 has quit [Quit: Leaving]
sergushakov has quit [Quit: WeeChat 2.3]
sergushakov has joined #ruby
roadie has joined #ruby
schne1der has joined #ruby
chalkmonster has joined #ruby
hiroaki has joined #ruby
TCZ has joined #ruby
troulouliou_div2 has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
yokel has quit [Ping timeout: 260 seconds]
yokel has joined #ruby
nofxx_ has quit [Remote host closed the connection]
ropeney has quit [Ping timeout: 264 seconds]
nofxx has joined #ruby
nullv4lue has quit [Quit: leaving]
wilhelm418 has quit [Ping timeout: 260 seconds]
burningserenity has joined #ruby
duderonomy has joined #ruby
ropeney has joined #ruby
rcvalle has quit [Remote host closed the connection]
burgestrand has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.8]
al2o3-cr has joined #ruby
burningserenity has quit [Ping timeout: 260 seconds]
burningserenity has joined #ruby
rcvalle has joined #ruby
cthulchu_ has joined #ruby
d3bug has quit [Quit: Connection closed for inactivity]
fercell has quit [Quit: WeeChat 2.8]
<TCZ>
xd
TCZ has quit [Quit: Leaving]
imode has joined #ruby
roadie has quit [Remote host closed the connection]
roadie has joined #ruby
comet23 has quit [Quit: Connection closed for inactivity]
burningserenity has quit [Quit: Leaving.]
burgestrand has quit [Quit: burgestrand]
_aeris_ has quit [Remote host closed the connection]
ritalinona has quit [Remote host closed the connection]
ritalinona has joined #ruby
_aeris_ has joined #ruby
burningserenity has joined #ruby
jinmiaol2 has joined #ruby
gix has joined #ruby
TomyWork has quit [Remote host closed the connection]
d3bug has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
sergushakov has quit [Quit: WeeChat 2.3]
MuffinPimp has quit [Ping timeout: 240 seconds]
hightower3 has joined #ruby
wilhelm418 has joined #ruby
conta has joined #ruby
lunarkitty has quit [Ping timeout: 260 seconds]
lunarkitty has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
greypack has quit [Ping timeout: 258 seconds]
sauvin has quit [Ping timeout: 265 seconds]
rprimus has quit [Quit: leaving]
greypack has joined #ruby
conta has quit [Ping timeout: 260 seconds]
burningserenity has quit [Remote host closed the connection]
chalkmonster has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jinmiaol2 has quit [Remote host closed the connection]
conta has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
yelloB has joined #ruby
conta has quit [Quit: conta]
yelloB has quit [Remote host closed the connection]
Seeping__ has joined #ruby
Seeping__ is now known as CPng|N
CPng|N is now known as CPngN
chouhoulis has joined #ruby
wilhelm418 has quit [Quit: WeeChat 2.8]
sh7d has quit [Read error: Connection reset by peer]
CPngN is now known as CPng|N
sh7d has joined #ruby
burningserenity has joined #ruby
ldepandis has joined #ruby
infinityfye has quit [Ping timeout: 240 seconds]
sysh has quit [Remote host closed the connection]
burningserenity has quit [Quit: Leaving.]
kristian_on_linu has quit [Remote host closed the connection]
CPng|N has quit [Read error: Connection reset by peer]
<kaleido>
someone sanity check me before i off myself. is this valid regex to match !covid followed by any alphanumeric between 1 and 9 characters? "/^!covid (\w{1-9})/"
<kaleido>
minus the extra "" of course :(
<adam12>
kaleido: What's an example input you're trying to match?
<adam12>
Something like "!covid FOOBAR"?
<kaleido>
!covid libya
<kaleido>
as an example
<adam12>
kaleido: You're close. You want a comma instead of a hyphen.
<havenwood>
al2o3-cr: I'm actually getting an RDoc::Parser error on install. :O
<havenwood>
al2o3-cr: RDoc::Parser::Ruby failure around line 176 of lib/benchmark/ips.rb
schne1der has quit [Ping timeout: 264 seconds]
<havenwood>
(NoMethodError) undefined method `[]' for nil:NilClass
<howdoi>
my factory has the required trait, I am able to see in the binding.pry too, but getting an error Trait not registered:, what might be the issue?
<al2o3-cr>
havenwood: hmm, i don't get that error, just one above.
<havenwood>
al2o3-cr: If I --no-document I get your same error: LoadError: cannot load such file -- benchmark/ips/stats/stats_metric
tau has quit [Read error: Connection reset by peer]
* howdoi
sits in a corner and waits
SeepingN has quit [Read error: Connection reset by peer]
<al2o3-cr>
ah, that's why, i have --no-document on by default .