method

save_limit

Importance_1
v2_6_3 - Show latest stable - 0 notes - Class: BigDecimal
save_limit() public

Execute the provided block, but preserve the precision limit

BigDecimal.limit(100)
puts BigDecimal.limit
BigDecimal.save_limit do
    BigDecimal.limit(200)
    puts BigDecimal.limit
end
puts BigDecimal.limit
Show source
Register or log in to add new notes.