Method: Ej::Commands#count

Defined in:
lib/ej/commands.rb

#count(query = ) ⇒ Object



56
57
58
# File 'lib/ej/commands.rb', line 56

def count(query = options[:query])
  puts_with_format(@core.search(options[:type], query, 0, 0, false))
end