Sha256: 1995ae8cb41e68fd43a3a064ab973396dc7f46b6eabee0d96b990e2d4ce9bd78
Contents?: true
Size: 334 Bytes
Versions: 1
Compression:
Stored size: 334 Bytes
Contents
class Integer def to_burlap if between?(-2**31, 2**31-1) Burlap::Node.new(:name => "int", :value => self.to_i).to_burlap else # <map><type>java.math.BigDecimal</type><string>value</string><string>0</string></map> Burlap::Hash[{:value => self.to_i.to_s}, "java.math.BigDecimal"].to_burlap end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
burlap-1.0.0 | lib/burlap/core_ext/integer.rb |