Module: ActiveSupport::CoreExtensions::BigDecimal::Conversions
- Defined in:
- lib/big_decimal_yaml_fix.rb
Instance Method Summary collapse
Instance Method Details
#encode_with(coder) ⇒ Object
5 6 7 8 |
# File 'lib/big_decimal_yaml_fix.rb', line 5 def encode_with(coder) string = to_s coder.represent_scalar(nil, YAML_MAPPING[string] || string) end |
#to_d ⇒ Object
11 12 13 |
# File 'lib/big_decimal_yaml_fix.rb', line 11 def to_d self end |