Class: TopSecret::NullModel::NullDoc

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

Overview

A null document implementation that provides an empty entities array. Used as the return value from NullModel#doc to maintain interface compatibility.

Instance Method Summary collapse

Instance Method Details

#entitiesArray

Returns an empty array of entities.

Returns:

  • (Array)

    Always returns an empty array



19
20
21
# File 'lib/top_secret/null_model.rb', line 19

def entities
  []
end