Module: Traject::Macros::Basic

Included in:
Indexer
Defined in:
lib/traject/macros/basic.rb

Instance Method Summary collapse

Instance Method Details

#literal(literal) ⇒ Object



3
4
5
6
7
# File 'lib/traject/macros/basic.rb', line 3

def literal(literal)
  lambda do |record, accumulator, context|
    accumulator << literal
  end
end