Sha256: 832b33aa6d2dc84960b6a6a19fb2095ec630b60c2640e3aa318b5e852d00138e

Contents?: true

Size: 325 Bytes

Versions: 5

Compression:

Stored size: 325 Bytes

Contents

module RedisTest
  attr :invalidated
  class Author
    def init_hook
      # called when initialized by xampl
      @invalidated = false
    end

    def note_invalidate
      # called by xampl to note that this object is invalid
      @invalidated = true
    end

    def invalidated?
      @invalidated
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
xamplr-1.9.20 lib/xamplr/tests/redis/author.rb
xamplr-1.9.18 lib/xamplr/tests/redis/author.rb
xamplr-1.9.16 lib/xamplr/tests/redis/author.rb
xamplr-1.9.15 lib/xamplr/tests/redis/author.rb
xamplr-1.9.14 lib/xamplr/tests/redis/author.rb