Sha256: b5f3824db44a00cdd96b7dc01a67ceba7e8800e866f0e87a98f0594a9d248cd3

Contents?: true

Size: 524 Bytes

Versions: 3

Compression:

Stored size: 524 Bytes

Contents

module Remi

  # The None extractor doesn't do anything.
  class Extractor::None < Extractor
    def extract
      nil
    end
  end


  # The None Parser just returns what it is given.
  class Parser::None < Parser
    def parse(data)
      data
    end
  end

  # The None Encoder just returns what it is given.
  class Encoder::None < Encoder
    def encode(data_frame)
      data_frame
    end
  end

  # The None loader doesn't do anything.
  class Loader::None < Loader
    def load(data)
      true
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
remi-0.3.2 lib/remi/data_subjects/none.rb
remi-0.3.1 lib/remi/data_subjects/none.rb
remi-0.3.0 lib/remi/data_subjects/none.rb