Class: JSON::Pure::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/paytunia.rb

Instance Method Summary collapse

Instance Method Details

#parse_valueObject



13
14
15
16
17
18
19
20
# File 'lib/paytunia.rb', line 13

def parse_value
  case
    when scan(FLOAT)
      BigDecimal(self[1])
    else
      parse_value_original
  end
end

#parse_value_originalObject



11
# File 'lib/paytunia.rb', line 11

alias_method :parse_value_original, :parse_value