class NoBrainer::Error::CannotUseIndex
Attributes
index_name[RW]
Public Class Methods
new(index_name)
click to toggle source
# File lib/no_brainer/error.rb, line 63 def initialize(index_name) @index_name = index_name end
Public Instance Methods
message()
click to toggle source
# File lib/no_brainer/error.rb, line 67 def message if index_name == true "Cannot use any indexes" else "Cannot use index #{index_name}" end end