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!
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
Phil0s0rapt0r has joined #ruby
jenrzzz has joined #ruby
doodleb80 has quit [Read error: Connection reset by peer]
Ai9zO5AP has quit [Quit: WeeChat 2.4]
ljarvis_ has quit [Ping timeout: 258 seconds]
esp32_prog has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skryking has quit [Ping timeout: 246 seconds]
octos has quit [Read error: Connection reset by peer]
houhoulis has joined #ruby
octos has joined #ruby
skryking has joined #ruby
esp32_prog has quit [Ping timeout: 272 seconds]
xco has joined #ruby
ljarvis_ has joined #ruby
dar123 has joined #ruby
SirFunk has quit [Quit: ZNC - http://znc.in]
Swyper has joined #ruby
doodlebug has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
Nicmavr has joined #ruby
Kestrel-029 has quit [Ping timeout: 245 seconds]
Swyper has quit [Ping timeout: 245 seconds]
fphilipe_ has quit [Ping timeout: 272 seconds]
SirFunk has joined #ruby
xco has quit [Quit: xco]
sylario has quit [Quit: Connection closed for inactivity]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
al2o3-cr has joined #ruby
jenrzzz has joined #ruby
salerace has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
Talion has joined #ruby
dar123 has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
Kestrel-029 has joined #ruby
hightower2 has quit [Ping timeout: 252 seconds]
dar123 has quit [Client Quit]
kapilp has joined #ruby
AJA4350 has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
orbyt_ has joined #ruby
haxx0r has joined #ruby
fphilipe_ has joined #ruby
duderonomy has joined #ruby
Swyper has joined #ruby
Nicmavr has joined #ruby
Swyper has quit [Remote host closed the connection]
Kestrel-029 has quit [Ping timeout: 245 seconds]
yoshie902a has joined #ruby
yoshie902a has left #ruby [#ruby]
shakes has joined #ruby
salerace has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
salerace has quit [Ping timeout: 248 seconds]
weteamsteve has quit [Ping timeout: 252 seconds]
esp32_prog has joined #ruby
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esp32_prog has quit [Ping timeout: 258 seconds]
cd has quit [Quit: cd]
doodleb28 has joined #ruby
doodleb28 has quit [Read error: Connection reset by peer]
doodleb29 has joined #ruby
fphilipe_ has quit [Ping timeout: 244 seconds]
doodleb29 has quit [Read error: Connection reset by peer]
linuus has quit [Quit: ZNC 1.7.2 - https://znc.in]
doodleb98 has joined #ruby
doodlebug has quit [Read error: Connection reset by peer]
linuus has joined #ruby
doodleb98 has quit [Read error: Connection reset by peer]
doodlebug has joined #ruby
Swyper has joined #ruby
jenrzzz has joined #ruby
Omnilord has joined #ruby
gix- has quit [Ping timeout: 272 seconds]
doodlebug has quit [Read error: Connection reset by peer]
doodlebug has joined #ruby
xlued has quit [Quit: Ping timeout (120 seconds)]
xlued has joined #ruby
fphilipe_ has joined #ruby
Phil0s0rapt0r has quit [Remote host closed the connection]
apg has joined #ruby
apg has joined #ruby
apg has quit [Changing host]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
tdy has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
apg has quit [Ping timeout: 272 seconds]
shakes has quit [Read error: Connection reset by peer]
dviola has quit [Quit: WeeChat 2.4]
AJA4350 has joined #ruby
braincrash has quit [Quit: bye bye]
Talion has quit [Quit: Connection closed for inactivity]
octos has quit [Read error: Connection reset by peer]
octos has joined #ruby
braincrash has joined #ruby
fphilipe_ has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
esp32_prog has joined #ruby
AJA4350 has quit [Quit: AJA4350]
salerace has joined #ruby
esp32_prog has quit [Ping timeout: 248 seconds]
fphilipe_ has joined #ruby
ltd has quit [Ping timeout: 245 seconds]
salerace has quit [Ping timeout: 258 seconds]
ltd has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
alexeev has quit [Remote host closed the connection]
fphilipe has joined #ruby
fphilipe_ has quit [Ping timeout: 257 seconds]
jenrzzz has joined #ruby
Omnilord has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 244 seconds]
fphilipe has quit [Ping timeout: 252 seconds]
ltd has quit [Ping timeout: 258 seconds]
houhoulis has quit [Remote host closed the connection]
matthewd has quit [Ping timeout: 264 seconds]
skryking has quit [Quit: WeeChat 2.4]
skryking has joined #ruby
matthewd has joined #ruby
Kestrel-029 has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
alexeev has joined #ruby
xco has joined #ruby
jenrzzz has joined #ruby
fphilipe has joined #ruby
Wolland has joined #ruby
fphilipe_ has joined #ruby
fphilipe has quit [Ping timeout: 252 seconds]
Wolland has quit [Client Quit]
alexeev has quit [Remote host closed the connection]
sauvin has joined #ruby
reber has joined #ruby
kapilp has quit [Quit: Connection closed for inactivity]
alexeev has joined #ruby
conta has joined #ruby
kyrylo has joined #ruby
alexeev has quit [Remote host closed the connection]
dellavg_ has joined #ruby
esp32_prog has joined #ruby
esp32_prog has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
alexeev has joined #ruby
Bounga has quit [Ping timeout: 258 seconds]
alexeev has quit [Remote host closed the connection]
alexeev has joined #ruby
alexeev_ has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
alexeev has quit [Ping timeout: 272 seconds]
ltd has joined #ruby
aupadhye has joined #ruby
alexeev_ has quit [Remote host closed the connection]
alexeev has joined #ruby
jenrzzz has joined #ruby
code_zombie has joined #ruby
alexeev has quit [Remote host closed the connection]
blackmesa has joined #ruby
alexeev has joined #ruby
schne1der has joined #ruby
alexeev has quit [Remote host closed the connection]
conta has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 258 seconds]
andikr has joined #ruby
fphilipe_ has quit [Ping timeout: 244 seconds]
hightower2 has joined #ruby
lxsameer has joined #ruby
hightower2 has quit [Changing host]
hightower2 has joined #ruby
TomyWork has joined #ruby
ubuntu__ has joined #ruby
ubuntu__ has quit [Client Quit]
fphilipe_ has joined #ruby
Kestrel-029 has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
deimos has joined #ruby
code_zombie has quit [Quit: Leaving]
jenrzzz has joined #ruby
nowhere_man has quit [Ping timeout: 248 seconds]
schne1der has quit [Ping timeout: 248 seconds]
jefffrails35 has joined #ruby
salerace has joined #ruby
esp32_prog has joined #ruby
salerace has quit [Ping timeout: 272 seconds]
esp32_prog has quit [Ping timeout: 248 seconds]
alexeev has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
Kestrel-029 has joined #ruby
uranoss has quit [Ping timeout: 252 seconds]
BuildTheRobots has quit [Ping timeout: 252 seconds]
jetpack_joe has quit [Ping timeout: 252 seconds]
justache has quit [Ping timeout: 258 seconds]
Pillus has quit [Ping timeout: 276 seconds]
iamdevnul has quit [Ping timeout: 276 seconds]
solars has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Ping timeout: 252 seconds]
Net has quit [Ping timeout: 252 seconds]
hsiktas has quit [Ping timeout: 276 seconds]
BuildTheRobots has joined #ruby
sylario has joined #ruby
BuildTheRobots has quit [Max SendQ exceeded]
Net has joined #ruby
jetpack_joe has joined #ruby
hahuang65 has joined #ruby
solars has joined #ruby
Pillus has joined #ruby
hsiktas has joined #ruby
iamdevnul has joined #ruby
BuildTheRobots has joined #ruby
deepredsky has joined #ruby
hahuang65 has quit [Max SendQ exceeded]
BuildTheRobots has quit [Excess Flood]
hahuang65 has joined #ruby
esp32_prog has joined #ruby
BuildTheRobots has joined #ruby
uranoss has joined #ruby
justache has joined #ruby
r3m has quit [Read error: Connection reset by peer]
r3m has joined #ruby
fphilipe_ has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
hsiktas has quit [Ping timeout: 250 seconds]
timeless has quit [Ping timeout: 250 seconds]
r3m has quit [Read error: Connection reset by peer]
jnix has quit [Ping timeout: 248 seconds]
BuildTheRobots has quit [Ping timeout: 252 seconds]
buzzbuzzy has quit [Ping timeout: 248 seconds]
gmcintire has quit [Ping timeout: 252 seconds]
buzzbuzzy has joined #ruby
timeless has joined #ruby
Net has quit [Ping timeout: 252 seconds]
arthurnn has quit [Ping timeout: 248 seconds]
arthurnn has joined #ruby
uranoss has quit [Ping timeout: 252 seconds]
ged has quit [Ping timeout: 248 seconds]
iamdevnul has quit [Ping timeout: 252 seconds]
Chew has quit [Ping timeout: 248 seconds]
ged has joined #ruby
jnix has joined #ruby
podman has quit [Ping timeout: 252 seconds]
coffeejunk has quit [Ping timeout: 252 seconds]
WA9ACE has quit [Ping timeout: 250 seconds]
deepredsky has quit [Ping timeout: 244 seconds]
chromis has quit [Ping timeout: 252 seconds]
sariyar has quit [Ping timeout: 248 seconds]
hsiktas has joined #ruby
iamdevnul has joined #ruby
hsiktas has quit [Excess Flood]
mosh has quit [Ping timeout: 252 seconds]
chromis has joined #ruby
podman has joined #ruby
gmcintire has joined #ruby
BuildTheRobots has joined #ruby
uranoss has joined #ruby
hsiktas has joined #ruby
Chew has joined #ruby
discopatrick has quit [Ping timeout: 252 seconds]
Net has joined #ruby
WA9ACE has joined #ruby
coffeejunk has joined #ruby
discopatrick has joined #ruby
miah_ has quit [Ping timeout: 248 seconds]
sariyar has joined #ruby
miah has joined #ruby
ShalokShalom has joined #ruby
meinside has quit [Ping timeout: 248 seconds]
mcspud has quit [Ping timeout: 250 seconds]
Pillus has quit [Ping timeout: 250 seconds]
NL3limin4t0r_afk is now known as NL3limin4t0r
Liothen has quit [Ping timeout: 250 seconds]
genpaku has quit [Ping timeout: 252 seconds]
mosh has joined #ruby
genpaku has joined #ruby
Pillus has joined #ruby
meinside has joined #ruby
mcspud has joined #ruby
Liothen has joined #ruby
fphilipe_ has joined #ruby
ricer2 has joined #ruby
lxsameer has quit [Quit: out]
TomyWork is now known as Rayden
Rayden is now known as TomyWork
Avon has joined #ruby
deepredsky has joined #ruby
Avon has quit [Client Quit]
Jonopoly_ has joined #ruby
deepredsky has quit [Ping timeout: 272 seconds]
alexeev has quit [Remote host closed the connection]
alexeev has joined #ruby
kapilp has joined #ruby
lxsameer has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dhollin3 has joined #ruby
dhollinger has quit [Ping timeout: 272 seconds]
cisco has joined #ruby
cisco is now known as Guest54723
ellcs has joined #ruby
conta has joined #ruby
alexeev_ has joined #ruby
clemens3 has joined #ruby
alexeev has quit [Read error: Connection reset by peer]
esp32_prog has quit [Ping timeout: 244 seconds]
tdy has quit [Ping timeout: 248 seconds]
salerace has joined #ruby
r3m has joined #ruby
Guest54723 has quit [Ping timeout: 248 seconds]
esp32_prog has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
cisco_ has joined #ruby
cisco_ has quit [Ping timeout: 248 seconds]
schne1der has joined #ruby
cisco_ has joined #ruby
hightower3 has joined #ruby
jefffrails35 has quit [Remote host closed the connection]
hightower2 has quit [Ping timeout: 272 seconds]
conta has quit [Quit: conta]
conta has joined #ruby
galeido has quit [Ping timeout: 268 seconds]
conta has quit [Ping timeout: 244 seconds]
fphilipe_ has quit [Ping timeout: 248 seconds]
<Bish> this channel is getting silent geez
cisco_ has quit [Ping timeout: 268 seconds]
galeido has joined #ruby
cisco has joined #ruby
cisco is now known as Guest62899
deepredsky has joined #ruby
Ai9zO5AP has joined #ruby
<ytti> squeeee, i made something cute - http://p.ip.fi/XYWk
<ytti> to_human(from_human(1.23, "Gbps")) == "1.23Gbps"
conta has joined #ruby
Guest62899 has quit [Quit: leaving]
Kestrel-029 has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
salerace has quit [Ping timeout: 258 seconds]
salerace has joined #ruby
BH23 has joined #ruby
<ytti> i have proprietary device emitting broken JSON, I wonder if there is way way to unbroke it. Essentially I have array of objects, each of these objects contains one spcific name which is non-unique to that object, and the last one takes precedence
<ytti> i'd want the first one to take precedence
<ytti> i guess i'd need to write my own trivial JSON parser to drop the first one
salerace has quit [Ping timeout: 244 seconds]
kyrylo has joined #ruby
DTZUZU2 has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
salerace has joined #ruby
BH23 has quit [Ping timeout: 258 seconds]
laaron has quit [Remote host closed the connection]
salerace has quit [Ping timeout: 258 seconds]
laaron has joined #ruby
salerace has joined #ruby
conta has quit [Ping timeout: 268 seconds]
fphilipe_ has joined #ruby
alexeev_ has quit [Remote host closed the connection]
alexeev has joined #ruby
conta has joined #ruby
laaron has quit [Remote host closed the connection]
alexeev_ has joined #ruby
jefffrails35 has joined #ruby
haxx0r has quit [Remote host closed the connection]
laaron has joined #ruby
alexeev has quit [Ping timeout: 258 seconds]
eph^ has joined #ruby
LenPayne has quit [Ping timeout: 245 seconds]
salerace has quit [Quit: salerace]
haxx0r has joined #ruby
Rudd0 has quit [Ping timeout: 245 seconds]
spectra has quit [Ping timeout: 257 seconds]
LenPayne has joined #ruby
Fusl has quit [Excess Flood]
yasumi2136 has joined #ruby
Rudd0 has joined #ruby
Fusl has joined #ruby
yokel has quit [Ping timeout: 258 seconds]
yokel has joined #ruby
spectra has joined #ruby
Shikichiro has joined #ruby
Swyper has quit [Remote host closed the connection]
alexeev_ has quit [Remote host closed the connection]
alexeev has joined #ruby
alexeev has quit [Remote host closed the connection]
dhollin3 is now known as dhollinger
fphilipe_ has quit [Ping timeout: 252 seconds]
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
cow[moo] has joined #ruby
cow[moo] has quit [Client Quit]
doodleb75 has joined #ruby
doodlebug has quit [Ping timeout: 258 seconds]
jefffrails35 has quit [Ping timeout: 244 seconds]
fphilipe_ has joined #ruby
AJA4350 has joined #ruby
fphilipe_ has quit [Ping timeout: 258 seconds]
cow[moo] has joined #ruby
doodleb75 has quit [Read error: Connection reset by peer]
fphilipe_ has joined #ruby
yasumi2136_ has joined #ruby
Shikichiro has quit [Read error: Connection reset by peer]
laaron has quit [Remote host closed the connection]
yasumi2136 has quit [Ping timeout: 258 seconds]
laaron has joined #ruby
doodlebug has joined #ruby
hightower3 has quit [Ping timeout: 272 seconds]
kapilp has quit [Quit: Connection closed for inactivity]
tweeaks has joined #ruby
KeyJoo has joined #ruby
<jhass> ytti: got an example?
<jhass> maybe it happens to be valid yaml or something
<ytti> jhass, no, no it's JSON converted from XML and definitely invalid - http://p.ip.fi/oh0s
<ytti> jhass, the XML version http://p.ip.fi/rIpq
<ytti> which is actually valid, as same node can appear many times in XML
<ytti> so just bug in their conversion implementatino
<jhass> fun, but I fail to spot where it's syntactically invalid?
<jhass> unless the dots are actually in there
<ytti> jhass, packet-information name appears twice in same object
conta has quit [Quit: conta]
<ytti> i broke indentation, why it looks ok
<jhass> ah
<jhass> well, just using the XML is no option?
conta has joined #ruby
<ytti> certainly is, and i usually do
<ytti> first time trying the JSON :)
<ytti> ofc reported to vendor too, certainly a mistake i could see myself writing on such converter
<jhass> well converting the XML is just the wrong approach in the first place
<jhass> you want your internal models/data classes to serialize to both
<ytti> the XML is the single source of truth
<ytti> out of which CLI and JSON are generated
<ytti> i don't find fault in the design
<ytti> just a implementation bug
andikr has quit [Remote host closed the connection]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> ytti: just for fun: https://carc.in/#/r/6yy6
rippa has joined #ruby
<ytti> jhass, huh, i was looking at JSON docs but didn't notice object_class
<ytti> jhass, i did try this JSON.load('{"hello": {"goodbye":"moi"}, "hello": {"moi": "jee"}}', Proc.new{|e|p e},create_additions: true)
<ytti> jhass, just to see what the proc observes, but it wouldn't observe the duplicate
<ytti> jhass, thank you
<jhass> not sure I'd actually use it, feels kinda hackish (esp compared to just using the XML), but I guess it works :)
<jhass> yeah no idea what the additions thing is about
<ytti> i'm definitely not going to use this for anything serious, mainly just wanted to see how mature it is, and answer appears to be not much
<ytti> but still that is very neat trick i'm happy to learn
cow[moo] has joined #ruby
jcalla has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
DTZUZU2 has joined #ruby
dar123 has joined #ruby
jefffrails35 has joined #ruby
zodd has joined #ruby
zodd is now known as Guest94668
Guest94668 is now known as zodd_
agent_white has joined #ruby
Wolland has joined #ruby
skryking has quit [Quit: WeeChat 2.4]
conta has quit [Quit: conta]
Wolland has quit [Quit: Mutter: www.mutterirc.com]
xco has quit [Quit: xco]
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
FrankDW has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthulchu has joined #ruby
deepredsky has quit [Ping timeout: 246 seconds]
yqt has joined #ruby
thiccdaddy has joined #ruby
jeremycw has joined #ruby
TomyWork has quit [Remote host closed the connection]
KeyJoo has quit [Quit: KeyJoo]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
BH23 has joined #ruby
_joes_ has joined #ruby
cd has joined #ruby
alexeev has joined #ruby
zacts has joined #ruby
_joes_ has quit [Quit: _joes_]
BH23 has quit [Remote host closed the connection]
clemens3 has quit [Quit: WeeChat 1.6]
zacts has quit [Quit: WeeChat 2.4]
doodleb28 has joined #ruby
octos has quit [Ping timeout: 258 seconds]
doodlebug has quit [Ping timeout: 268 seconds]
leitz has joined #ruby
aupadhye has quit [Quit: Leaving]
Jonopoly_ has quit [Quit: WeeChat 2.4]
polishdub has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
haxx0r29 has joined #ruby
haxx0r has quit [Remote host closed the connection]
ellcs has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thiccdaddy has left #ruby ["WeeChat 2.4"]
kapilp has joined #ruby
blackmesa has quit [Quit: WeeChat 2.4]
zacts has joined #ruby
rf` has joined #ruby
envex has quit [Ping timeout: 268 seconds]
deepredsky has joined #ruby
ricekrispie has joined #ruby
yasumi2136 has joined #ruby
rf` has quit [Ping timeout: 248 seconds]
ricekrispie2 has quit [Ping timeout: 258 seconds]
zacts has quit [Quit: WeeChat 2.4]
envex has joined #ruby
yasumi2136_ has quit [Ping timeout: 244 seconds]
jefffrails35 has quit [Remote host closed the connection]
doodleb28 has quit [Read error: Connection reset by peer]
doodlebug has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
<graft> what happened to Time#iso8601?
<graft> it's gone in 2.6.3
laaron has quit [Remote host closed the connection]
<havenwood> graft: require 'time'
skryking has joined #ruby
envex has quit [Ping timeout: 248 seconds]
<graft> strange, I can do Time.now without require 'time'?
envex has joined #ruby
laaron has joined #ruby
<havenwood> graft: some classes, like Thread, Fiber, Time, etc, load more features when required
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 258 seconds]
AJA4351 is now known as AJA4350
<graft> interesting... the docs are singularly unclear here
tdy has joined #ruby
<graft> where are docs for require 'time' as opposed to the basic Time?
<havenwood> graft: they just show "require 'time'" in front of all the methods examples where it's required
dar123 has joined #ruby
<havenwood> graft: Some also say: "You must require 'time' to use this method."
<graft> i'm looking at ruby-doc.org
<graft> there's no documentation for #iso8601 here: https://ruby-doc.org/core-2.6.3/Time.html, although it is referenced in #round as you say
esp32_prog has quit [Ping timeout: 252 seconds]
<havenwood> "You must require 'time' to use this method."
<graft> those docs appear to be incorrect also, ::iso8601 is not #iso8601
laaron has quit [Remote host closed the connection]
<havenwood> graft: ruby-doc.org just puts the documentation here: https://ruby-doc.org/stdlib-2.6.3/libdoc/time/rdoc/Time.html
<graft> no, never mind i figured it out
<havenwood> graft: The links are better for docs.ruby-lang.org, but you can find it on ruby-doc.org as well.
Nicmavr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
laaron has joined #ruby
<graft> aha there is an 'additional notes' section noting the distinction on ruby-doc.org
tf2ftw has joined #ruby
graft has quit [Ping timeout: 272 seconds]
Tempesta has joined #ruby
samort7 has quit [Ping timeout: 256 seconds]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zacts has joined #ruby
john_ has joined #ruby
esp32_prog has joined #ruby
orbyt_ has joined #ruby
Rapture has joined #ruby
esp32_prog has quit [Ping timeout: 248 seconds]
laaron has quit [Remote host closed the connection]
john_ has quit [Quit: Leaving]
Nicmavr has quit [Ping timeout: 245 seconds]
Kestrel-029 has joined #ruby
laaron has joined #ruby
jenrzzz has joined #ruby
houhoulis has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
ShalokShalom has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 248 seconds]
zacts has quit [Quit: WeeChat 2.4]
nowhere_man has joined #ruby
xco has joined #ruby
octos has joined #ruby
laaron has quit [Remote host closed the connection]
deimos has quit [Quit: leaving]
zacts has joined #ruby
deimos has joined #ruby
yqt has quit [Ping timeout: 245 seconds]
laaron has joined #ruby
dar123 has joined #ruby
tf2ftw has quit [Quit: This computer has gone to sleep]
zacts has quit [Quit: WeeChat 2.4]
antoniogu has joined #ruby
duderonomy has joined #ruby
NL3limin4t0r is now known as NL3limin4t0r_afk
englosh_ has joined #ruby
antoniogu has quit []
antoniogu has joined #ruby
zacts has joined #ruby
zodd_ has quit [Ping timeout: 245 seconds]
Kestrel-029 has quit [Ping timeout: 245 seconds]
antoniogu has quit [Client Quit]
Nicmavr has joined #ruby
antoniogu has joined #ruby
zacts has quit [Client Quit]
antoniogu is now known as antong
antong has quit []
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe_ has quit [Ping timeout: 252 seconds]
Azure has joined #ruby
dviola has joined #ruby
fphilipe_ has joined #ruby
englosh_ has quit [Ping timeout: 256 seconds]
cjohnson has joined #ruby
fphilipe_ has quit [Ping timeout: 248 seconds]
Wolland has joined #ruby
octos has quit [Ping timeout: 272 seconds]
Eiam_ has joined #ruby
Wolland has quit [Client Quit]
Eiam has quit [Ping timeout: 252 seconds]
octos has joined #ruby
AJA4350 has quit [Ping timeout: 252 seconds]
Wolland has joined #ruby
ramfjord has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
galeido has quit [Ping timeout: 258 seconds]
Wolland has quit [Quit: Mutter: www.mutterirc.com]
galeido_ has joined #ruby
ShalokShalom has joined #ruby
sameerynho has joined #ruby
ShalokShalom has quit [Remote host closed the connection]
esp32_prog has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
esp32_prog has quit [Ping timeout: 272 seconds]
CrazyEddy has quit [Ping timeout: 246 seconds]
AJA4350 has joined #ruby
doodlebug has quit [Ping timeout: 246 seconds]
doodleb52 has joined #ruby
houhoulis has quit [Remote host closed the connection]
CrazyEddy has joined #ruby
schne1der has quit [Ping timeout: 246 seconds]
reber has quit [Read error: Connection reset by peer]
reber has joined #ruby
octos has quit [Remote host closed the connection]
octos has joined #ruby
budonyc has joined #ruby
dar123 has quit [Remote host closed the connection]
doodleb52 has quit [Read error: Connection reset by peer]
octos has quit [Remote host closed the connection]
octos has joined #ruby
doodlebug has joined #ruby
stryek has joined #ruby
schne1der has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
leftylin1 is now known as leftylink
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
graft has quit [Ping timeout: 268 seconds]
laaron has joined #ruby
ramfjord has joined #ruby
tdy has quit [Ping timeout: 272 seconds]
schne1der has quit [Ping timeout: 246 seconds]
SeepingN has joined #ruby
leitz has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 272 seconds]
ramfjord has joined #ruby
gix has joined #ruby
graft has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
kyrylo has quit [Quit: Textual IRC Client: www.textualapp.com]
cthulchu_ has joined #ruby
sparc has joined #ruby
cthulchu has quit [Ping timeout: 258 seconds]
fphilipe_ has joined #ruby
octos has quit [Quit: Leaving]
octos has joined #ruby
graft has quit [Ping timeout: 258 seconds]
fphilipe_ has quit [Ping timeout: 248 seconds]
antoniogu has joined #ruby
antoniogu is now known as antong
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
kyrylo has joined #ruby
antong has quit [Client Quit]
antong has joined #ruby
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
antong has quit [Client Quit]
antong has joined #ruby
antong has quit [Client Quit]
ShalokShalom has joined #ruby
cadeskywalker has quit [Ping timeout: 252 seconds]
ShalokShalom has quit [Remote host closed the connection]
digitalnomad has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe_ has joined #ruby
octos has quit [Ping timeout: 258 seconds]
kyrylo has joined #ruby
esp32_prog has joined #ruby
octos has joined #ruby
esp32_prog has quit [Ping timeout: 272 seconds]
codefriar has joined #ruby
octos has quit [Remote host closed the connection]
cadeskywalker has joined #ruby
<codefriar> Ok, so I'm struggling with something that should be simple. I need to open a file, iterate over the lines, find the appropriate line (it's an alphabetical list) and INSERT a new line (not \n, but a new line of text) and save the file. Any pointers/
<codefriar> started with this: lines.each { |l| p 'yes' if l.include? 'PARSE' } but for whatever reason, it's printing EVERY line,
moei has joined #ruby
<jhass> codefriar: how do you define lines?
<jhass> maybe it's not actually lines
<codefriar> file.readlines
tdy has joined #ruby
kapilp has quit [Quit: Connection closed for inactivity]
<jhass> seems fine
<jhass> codefriar: could you try to provide a self contained example like this that reproduces your issue?
<codefriar> i'm just an idiot. it had to do with pry being wierd and dumping the lines variable after the each statement...
<codefriar> scrolling up held my answer
<jhass> ah, ok. .each always returns the receiver so that's expected in a repl session
blueflame has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
blueflame has left #ruby [#ruby]
lupine has quit [Ping timeout: 250 seconds]
aspiers has quit [Ping timeout: 264 seconds]
AJA4350 has quit [Ping timeout: 248 seconds]
aspiers has joined #ruby
reber has quit [Remote host closed the connection]
lupine has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
Kestrel-029 has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
xco has quit [Quit: xco]
i9zO5AP has joined #ruby
Ai9zO5AP has quit [Ping timeout: 246 seconds]
gix has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix- has quit [Ping timeout: 272 seconds]
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
octos has joined #ruby
xco has joined #ruby
SigizMG has quit [Read error: Connection reset by peer]
tdy has quit [Ping timeout: 248 seconds]
octos has quit [Remote host closed the connection]
octos has joined #ruby
sameerynho has quit [Ping timeout: 248 seconds]
jeremycw has quit [Ping timeout: 272 seconds]
digitalnomad has quit [Ping timeout: 248 seconds]
schne1der has joined #ruby
AJA4350 has joined #ruby
esp32_prog has joined #ruby
esp32_prog has quit [Ping timeout: 257 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
Swyper has joined #ruby
ramfjord has joined #ruby
cthulchu has joined #ruby
cthulchu_ has quit [Ping timeout: 244 seconds]
orbyt_ has joined #ruby
houhoulis has joined #ruby
Swyper has quit [Remote host closed the connection]
Fernando-Basso has joined #ruby
octos has quit [Remote host closed the connection]
octos has joined #ruby
Nicmavr has joined #ruby
Kestrel-029 has quit [Ping timeout: 245 seconds]
fphilipe_ has quit [Ping timeout: 252 seconds]
doodlebug has quit [Ping timeout: 272 seconds]
houhoulis has quit [Remote host closed the connection]
doodleb70 has joined #ruby
gix has quit [Ping timeout: 258 seconds]
gix has joined #ruby
agent_white has quit [Quit: brb]
schne1der has quit [Quit: schne1der]
polishdub has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 246 seconds]
cthulchu has quit [Ping timeout: 268 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe_ has joined #ruby
Swyper has joined #ruby
gix has quit [Ping timeout: 272 seconds]
cd has quit [Remote host closed the connection]
cd has joined #ruby
tdy has joined #ruby
Swyper has quit [Remote host closed the connection]
orbyt_ has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has quit [Ping timeout: 268 seconds]
duderonomy has joined #ruby
octos has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<xco> is there a way to check all the classes/objects that respond to a certain method?
<xco> for example
<xco> how do i have all the class/objects that respond_to?(:empty?)
<xco> i know String, does, Array does respond to it and hash too i think
<xco> but is there a way to check for a list of this from say irb?
<phaul> you can walk ObjectSpace
<xco> something “meta-programmy” should be able to do that
<phaul> or call &list on the bot :P
<phaul> &list empty?
<rubydoc> Dir.empty?, ENV.empty?, File.empty?, Array#empty?, Hash#empty?, Queue#empty?, SizedQueue#empty?, String#empty?, Symbol#empty?, FileTest#empty?, CSV::FieldsConverter#empty?, DBM#empty?, GDBM#empty?, Matrix#empty?, Pathname#empty?, RDoc::Comment#empty?, RDoc::Markup::Document#empty?, RDoc::Markup::List#empty?, RDoc::Markup::ListItem#empty?, REXML::Elements#empty?, REXML::IOSource#empty?, REXML::Parsers::BaseParser#empty?, REXML::Source#empty?, REXML::Text#empty?, ...
<rubydoc> ... Gem::AvailableSet#empty?, Gem::Package::TarHeader#empty?, Gem::RequestSet::Lockfile::Tokenizer#empty?, Gem::Resolver::RequirementList#empty?, Gem::SourceList#empty?, SDBM#empty?, Set#empty?, StringScanner#empty?, ThreadsWait#empty?
<xco> what?!?! :o
<xco> hahaha
<xco> what kind of sorcery is this? :P
<xco> phaul: thanks but how would i do it in the terminal?
asat has joined #ruby
<phaul> walk ObjectSpace
fphilipe_ has quit [Ping timeout: 258 seconds]
<phaul> &>> ObjectSpace.each_object(Class).take(10)
<rubydoc> # => [Monitor, #<Class:MonitorMixin>, SimpleDelegator, #<Class:URI::File>, URI::File, #<Class:Gem::Version>,... check link for more (https://carc.in/#/r/6z07)
<xco> yeah i saw that i’m reading it’s documentation but have no idea how to use it to check what responds_to empty? for example
<xco> wait
<phaul> &>> ObjectSpace.each_object(Class).select { |klass| klass.instance_methods.include? :empty? }
<rubydoc> # => [Thread::SizedQueue, Thread::Queue, #<Class:FileTest>, #<Class:#<Object:0x000055c984233900>>, Hash,... check link for more (https://carc.in/#/r/6z08)
<xco> right
<xco> so this these are ALL the classes that have #empty? as intance methods right?
<phaul> at the point when you run the code. Ruby is dynamic.. so this list can change as the program runs
<xco> what if there’s something up above this “ObjectSpace” that responds to empty??
<phaul> ObjectSpace always includes all objects in the system.
<phaul> classes/ modules and every other objects too.
<xco> got it
<xco> thanks
<phaul> np
<xco> :)
shtirlic has quit [Quit: ZNC - http://znc.in]
shtirlic has joined #ruby
esp32_prog has joined #ruby
esp32_prog has quit [Ping timeout: 246 seconds]
AJA4350 has quit [Ping timeout: 272 seconds]
bambanx has joined #ruby