Sha256: 39c0de4e44be50a5267f494b017bc626596fb29b074c5ac3c9e6337b1383d4d1

Contents?: true

Size: 399 Bytes

Versions: 1

Compression:

Stored size: 399 Bytes

Contents

module WirisPlugin
include  Wiris
  class JSonIntegerFormat
  include Wiris

  HEXADECIMAL = 0
    attr_accessor :n
    attr_accessor :format
    def initialize(n,format)
      super()
      @n = n
      @format = format
    end
    def toString()
      if @format==HEXADECIMAL
        return "0x"+StringTools::hex(@n,0).to_s
      end
      return ""+@n.to_s
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wirispluginengine-3.62.0.1322 lib/com/wiris/util/json/JSonIntegerFormat.rb