Class: Integer
Instance Method Summary collapse
Instance Method Details
#to_burlap ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/burlap/core_ext/integer.rb', line 2 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 |