Sha256: 7a5e6d211098095f30f6bb9178b4d966111092fb4b0d8eec9fccca2a8ce4e8ab

Contents?: true

Size: 122 Bytes

Versions: 1

Compression:

Stored size: 122 Bytes

Contents

class Kredis::Types::Integer < Kredis::Types::String
  def value
    get&.to_i
  end

  def to_s
    value.to_s
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kredis-0.1.2 lib/kredis/types/integer.rb