Module: EDN
- Defined in:
- lib/edn_turbo.rb
Overview
Replace the parser in the EDN module with the C based one.
Class Method Summary collapse
-
.big_decimal_edn_turbo(value) ⇒ Object
edn-ruby uses BigDecimal.new() which breaks in ruby >= 2.7.0 so we use this instead.
-
.rational(value) ⇒ Object
makes a rational type for converting a clojure ratio - this should be in edn-ruby.
Class Method Details
.big_decimal_edn_turbo(value) ⇒ Object
edn-ruby uses BigDecimal.new() which breaks in ruby >= 2.7.0 so we use this instead
42 43 44 |
# File 'lib/edn_turbo.rb', line 42 def self.big_decimal_edn_turbo(value) BigDecimal(value) end |
.rational(value) ⇒ Object
makes a rational type for converting a clojure ratio
-
this should be in edn-ruby
36 37 38 |
# File 'lib/edn_turbo.rb', line 36 def self.rational(value) Rational(value) end |