Sha256: 21c6d84b240292860c4cd990418b5ed781d54426a50066bf4b27b8595e30db53

Contents?: true

Size: 218 Bytes

Versions: 5

Compression:

Stored size: 218 Bytes

Contents

module Haxor
  module Token
    class Int64 < Data
      def to_bytecode
        [@data].pack('q<')
      end

      def size
        8
      end

      def to_s
        "int64 -> #{@data}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
haxor-0.5.0 lib/haxor/token/int64.rb
haxor-0.4.0 lib/haxor/token/int64.rb
haxor-0.3.0 lib/haxor/token/int64.rb
haxor-0.2.0 lib/haxor/token/int64.rb
haxor-0.1.0 lib/haxor/token/int64.rb