Class: Reissue::NullFragmentHandler

Inherits:
FragmentHandler show all
Defined in:
lib/reissue/fragment_handler/null_fragment_handler.rb

Overview

Handler for when no fragment source is configured

Instance Method Summary collapse

Methods inherited from FragmentHandler

for

Instance Method Details

#clearnil

Clear fragments (no-op since no source is configured)

Returns:

  • (nil)


16
17
18
# File 'lib/reissue/fragment_handler/null_fragment_handler.rb', line 16

def clear
  nil
end

#readHash

Read fragments (returns empty hash since no source is configured)

Returns:

  • (Hash)

    An empty hash



9
10
11
# File 'lib/reissue/fragment_handler/null_fragment_handler.rb', line 9

def read
  {}
end