adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
Jacktar_ has joined #ruby
jacktar has quit [Remote host closed the connection]
Danishman has quit [Quit: Leaving]
Jacktar_ is now known as jacktar
easbarbosa has quit [Remote host closed the connection]
aeris has quit [Ping timeout: 244 seconds]
aeris has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
Rounin has quit [Ping timeout: 272 seconds]
ur5us has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
mrkz_c has quit [Quit: Connection closed for inactivity]
finsternis has quit [Remote host closed the connection]
factor has quit [Read error: Connection reset by peer]
factor has joined #ruby
mrkz_c has joined #ruby
<nakilon> jwr disrespects the bot so much, lol
reset has quit [Quit: reset]
_ht has joined #ruby
ur5us has quit [Ping timeout: 272 seconds]
Jacktar_ has joined #ruby
jacktar has quit [Ping timeout: 244 seconds]
Jacktar_ is now known as jacktar
Jacktar_ has joined #ruby
jacktar has quit [Ping timeout: 244 seconds]
Jacktar_ is now known as jacktar
kaivai has quit [Ping timeout: 252 seconds]
kaivai has joined #ruby
gr33n7007h has quit [Ping timeout: 256 seconds]
TomyWork has joined #ruby
mahlon has quit [Ping timeout: 256 seconds]
ged has quit [Ping timeout: 276 seconds]
Jacktar_ has joined #ruby
ur5us has joined #ruby
jacktar has quit [Ping timeout: 244 seconds]
Jacktar_ is now known as jacktar
Guest1324 has joined #ruby
mahlon has joined #ruby
ged has joined #ruby
ikke has quit [Ping timeout: 255 seconds]
ikke has joined #ruby
Bounga has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
nirix has joined #ruby
Rounin has joined #ruby
reset has joined #ruby
yosafbridge has quit [Quit: Leaving]
yosafbridge has joined #ruby
yosafbridge has quit [Excess Flood]
yosafbridge has joined #ruby
darkxploit has quit [Read error: Connection reset by peer]
darkxploit has joined #ruby
kaivai has quit [Ping timeout: 276 seconds]
kaivai has joined #ruby
bandithijo has quit [Ping timeout: 256 seconds]
chonkbit has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
shiru has joined #ruby
CrazyEddy has joined #ruby
shiru has quit [Client Quit]
Guest1324 has quit [Ping timeout: 272 seconds]
bandithijo has joined #ruby
peer has quit [Quit: owo]
drincruz_ has joined #ruby
drincruz has quit [Ping timeout: 276 seconds]
drincruz_ has quit [Read error: Connection reset by peer]
darkxploit has quit [Quit: darkxploit]
drincruz_ has joined #ruby
jhass[m] has quit [*.net *.split]
wmoxam has quit [*.net *.split]
sam113101 has quit [*.net *.split]
nebiros has quit [*.net *.split]
dostoyevsky2 has quit [*.net *.split]
newton has quit [*.net *.split]
Byteflux has quit [*.net *.split]
wmoxam_ has joined #ruby
dostoyevsky2 has joined #ruby
nebiros has joined #ruby
Byteflux has joined #ruby
nebiros has quit [Changing host]
nebiros has joined #ruby
newton has joined #ruby
newton has quit [Signing in (newton)]
newton has joined #ruby
sam113101 has joined #ruby
Rounin has quit [Ping timeout: 276 seconds]
ikke has quit [Ping timeout: 272 seconds]
ikke has joined #ruby
newton has quit [Quit: Clothes-Lined]
newton has joined #ruby
nirix has quit [Quit: Connection closed for inactivity]
Bounga has quit [Ping timeout: 272 seconds]
chris has joined #ruby
chris is now known as Guest579
bandithijo has quit [Read error: Connection reset by peer]
bandithijo has joined #ruby
peer has joined #ruby
peer has quit [Changing host]
peer has joined #ruby
peer has quit [Client Quit]
peer has joined #ruby
<michigan> Hello! I'm trying to use the Addressable gem to convert foreign characters in URLs, but how come `uri = Addressable::URI.parse("http://äöü"); uri.normalize` returns http://xn--4ca0bs/ instead of http://aou/? (https://rubydoc.info/gems/addressable/2.2.4/Addressable/URI)
jetchisel has joined #ruby
bandithijo has quit [Ping timeout: 276 seconds]
bandithijo has joined #ruby
<newton> the xn-- domain is technically the non-unicode version of the url you passed to parse
<michigan> hmmm
TomyWork has quit [Remote host closed the connection]
xuochi has quit [Quit: leaving]
xuochi has joined #ruby
<aesthetikx> hows it going michigan
bandithijo has quit [Ping timeout: 276 seconds]
<aesthetikx> im a michigan myself
<michigan> michigan, vermont here :) shitty little place
<aesthetikx> haha what an unusual name
<michigan> im actually from roy, new mexico. even shittier
<michigan> yeah my parents named my siblings and i after u.s. states
<aesthetikx> interesting
<aesthetikx> carolina would be a good one
<michigan> yup :)
drincruz_ has quit [Ping timeout: 255 seconds]
ule has quit [Changing host]
ule has joined #ruby
drincruz_ has joined #ruby
<adam12> I wonder which one would be the worst. Rhode Island?
<aesthetikx> US Virgin Islands
Guest579 has quit [Ping timeout: 258 seconds]
<adam12> LOL
menace has joined #ruby
menace has quit [Changing host]
menace has joined #ruby
levifig has quit [Ping timeout: 250 seconds]
reset has quit [Quit: reset]
reset has joined #ruby
finsternis has joined #ruby
orbyt has joined #ruby
belak has joined #ruby
gr33n7007h has joined #ruby
<belak> Is there a shortcut to alias something Klass.method to Klass.instance.method on a singleto so I don't need to explicitly refer to .instance?
jetchisel has quit [Ping timeout: 276 seconds]
jetchisel has joined #ruby
<rg> maybe delegate.rb can help, from the stdlib.
ikke has quit [Ping timeout: 245 seconds]
ikke has joined #ruby
<adam12> belak: Forwardable module (similar to what rg mentioned above). You'll need to use `class << self` or another mechanism to access the eigenclass tho.
<adam12> class << self; extend Forwardable; def_delegators :instance, :method_1, :method_2, :method_3; end;
lunarkitty has joined #ruby
<belak> Ah, ok
<belak> I ended up dropping the explicit Singleton, and just instantiating this class as a variable
<adam12> belak: That'll do :) I'm actually not really sure of the practicality of the Singleton mixin.
<adam12> (you can assign to a constant with the same result, afaik)
<adam12> Maybe memory savings, since `instance` on the object actually creates the instance (vs a singleton where it's created once seen)
ikke has quit [Ping timeout: 255 seconds]
ikke has joined #ruby
ikke has quit [Ping timeout: 256 seconds]
darkxploit has joined #ruby
ikke has joined #ruby
lucf117 has joined #ruby
ckrailo has quit [Remote host closed the connection]
ikke has quit [Ping timeout: 255 seconds]
eyeris has joined #ruby
<eyeris> In ruby3 how can I capture the current block in order to pass it down to another function? I used to be able to call other_func(&Proc.new) even if other_func was declared without parameters and called yield.
drincruz has joined #ruby
drincruz_ has quit [Ping timeout: 245 seconds]
<eyeris> It looks like the proper approach is to abandon block_given?, declare all methods that previously used it with a &blk final param, and then use 'if blk' before calling it.
<adam12> eyeris: Can you show code? And do you get any warnings on 2.7?
<eyeris> For some reason I thought &blk params were required but experimentation proves otherwise :)
<rg> that's nothing new :)
_ht has quit [Remote host closed the connection]
chris has joined #ruby
chris is now known as Guest532
pusewic|away is now known as pusewicz
pusewicz is now known as pusewic|away
pusewic|away is now known as pusewicz
jetchisel has quit [Ping timeout: 276 seconds]
eyeris has quit [Quit: leaving]
jetchisel has joined #ruby
pusewicz is now known as pusewic|away
jhass[m] has joined #ruby
ckrailo has joined #ruby
ikke has joined #ruby
ur5us has joined #ruby
orbyt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
chonkbit has quit [Ping timeout: 255 seconds]
nirix has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
ua__ has joined #ruby
CrazyEddy has joined #ruby
ua_ has quit [Ping timeout: 276 seconds]
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
unmanbearpig has quit [Quit: unmanbearpig]
niv has joined #ruby
niv has quit [Client Quit]
niv has joined #ruby
niv has quit [Client Quit]
niv has joined #ruby
niv has quit [Client Quit]
niv has joined #ruby
drincruz_ has joined #ruby
drincruz has quit [Ping timeout: 246 seconds]
bandithijo has joined #ruby
shiru has joined #ruby