Class: AjaxDatatablesRails::Datatable::SimpleSearch

Inherits:
Object
  • Object
show all
Defined in:
lib/ajax-datatables-rails/datatable/simple_search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ SimpleSearch

Returns a new instance of SimpleSearch.



6
7
8
# File 'lib/ajax-datatables-rails/datatable/simple_search.rb', line 6

def initialize options
  @options = options || {}
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/ajax-datatables-rails/datatable/simple_search.rb', line 4

def options
  @options
end

Instance Method Details

#regexp?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/ajax-datatables-rails/datatable/simple_search.rb', line 14

def regexp?
  options[:regex] == TRUE_VALUE
end

#valueObject



10
11
12
# File 'lib/ajax-datatables-rails/datatable/simple_search.rb', line 10

def value
  options[:value]
end