class Money
def self.with_rounding_mode(mode)
-
(Object)
- block results
Other tags:
- Yield: - The block within which rounding mode will be changed. Its return
Parameters:
-
mode
(BigDecimal::ROUND_MODE
) --
def self.with_rounding_mode(mode) Thread.current[:money_rounding_mode] = mode yield ensure Thread.current[:money_rounding_mode] = nil end