skx86 has quit [Quit: Connection closed for inactivity]
sergioro has joined #ruby
gix has joined #ruby
fphilipe has quit [Ping timeout: 240 seconds]
brool has joined #ruby
n00bs is a derogatory term. If you want to write introductory material you can do it without a condesending tone too
fphilipe has joined #ruby
impermanence has quit [Remote host closed the connection]
ellcs has quit [Ping timeout: 248 seconds]
bvdw has joined #ruby
mn3m has quit [Ping timeout: 265 seconds]
bvdw has quit [Client Quit]
fphilipe has quit [Ping timeout: 252 seconds]
houhoulis has joined #ruby
itarato has joined #ruby
TCZ has joined #ruby
noizex has joined #ruby
brool has quit [Ping timeout: 240 seconds]
donofrio has quit [Remote host closed the connection]
johnnyb_61820 has joined #ruby
It looks like Ruby is changing the way that objects are initialized, but I can't find documentation on it. For example, in Ruby 2.5, I could do BigDecimal.new(0), but in Ruby 2.7 that throws an error (looks like it should just be BigDecimal(0)). Anyway, I can't find any information on the change. Can someone point me to a link on where all this is changing and why?
the old documentation points to this file:
I couldn't find anything in the file to help. Is this something specific to BigDecimal, or is this a bigger change?
dviola has joined #ruby
johnnyb_61820: The change was specific to BigDecimal and was for parity with Integer(), Float(), Rational(), etc.
johnnyb_61820: Alternatively, you can use #to_d if you: require 'bigdecimal/util'