Sha256: 92862dc26a99a31436a961cdc4896e1dd70f3038dff44e38caaaa9112efd23c6

Contents?: true

Size: 212 Bytes

Versions: 2

Compression:

Stored size: 212 Bytes

Contents

module PgSerializable
  class Aliaser
    def initialize(current=nil)
      @current = current || 'a0'
    end

    def next!
      @current = @current.next
    end

    def to_s
      @current
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pg_serializable-0.1.1 lib/pg_serializable/aliaser.rb
pg_serializable-0.1.0 lib/pg_serializable/aliaser.rb