Class: Webhookdb::SpecHelpers::Service::Rewindable

Inherits:
String
  • Object
show all
Defined in:
lib/webhookdb/spec_helpers/service.rb

Instance Method Summary collapse

Constructor Details

#initialize(s) ⇒ Rewindable

Returns a new instance of Rewindable.



64
65
66
67
# File 'lib/webhookdb/spec_helpers/service.rb', line 64

def initialize(s)
  super
  @s = s
end

Instance Method Details

#readObject



69
70
71
# File 'lib/webhookdb/spec_helpers/service.rb', line 69

def read(*)
  return @s
end

#rewindObject



73
74
75
# File 'lib/webhookdb/spec_helpers/service.rb', line 73

def rewind(*)
  nil
end