Sha256: c30a3313c709bdb48ca78a2f91db9445fb0c3c0ebb9c742f7fee458b3b6870fa
Contents?: true
Size: 534 Bytes
Versions: 27
Compression:
Stored size: 534 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 require 'base64' module TwitterCldr module Segmentation class StatusTable PACK_FMT = 'I!*'.freeze class << self def load(hash) new(Base64.decode64(hash[:table]).unpack(PACK_FMT)) end end attr_reader :values def initialize(values) @values = values end def dump { table: Base64.encode64(values.pack(PACK_FMT)).strip } end end end end
Version data entries
27 entries across 27 versions & 1 rubygems