Exception: Lunr::AlreadyExecuted

Inherits:
Error
  • Object
show all
Defined in:
lib/lunr/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#searchObject (readonly)

Returns the value of attribute search.



6
7
8
# File 'lib/lunr/errors.rb', line 6

def search
  @search
end

Instance Method Details

#initalize(search) ⇒ Object



8
9
10
11
# File 'lib/lunr/errors.rb', line 8

def initalize search
  @search = search
  super "Can't add more criteria, this search has already been executed!"
end