Class: ModelIterator::NullRedis

Inherits:
Object
  • Object
show all
Defined in:
lib/model_iterator.rb

Overview

Pass this to ModelIterator if you don’t want to store state anywhere.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.newObject



240
241
242
# File 'lib/model_iterator.rb', line 240

def self.new
  @instance
end

Instance Method Details

#del(key) ⇒ Object



251
252
# File 'lib/model_iterator.rb', line 251

def del(key)
end

#get(key) ⇒ Object



244
245
246
# File 'lib/model_iterator.rb', line 244

def get(key)
  0
end

#set(key, value) ⇒ Object



248
249
# File 'lib/model_iterator.rb', line 248

def set(key, value)
end