Class: AjaxDatatablesRails::Datatable::SimpleSearch
- Inherits:
-
Object
- Object
- AjaxDatatablesRails::Datatable::SimpleSearch
- Defined in:
- lib/ajax-datatables-rails/datatable/simple_search.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ SimpleSearch
constructor
A new instance of SimpleSearch.
- #regexp? ⇒ Boolean
- #value ⇒ Object
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 = || {} end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/ajax-datatables-rails/datatable/simple_search.rb', line 4 def @options end |
Instance Method Details
#regexp? ⇒ Boolean
14 15 16 |
# File 'lib/ajax-datatables-rails/datatable/simple_search.rb', line 14 def regexp? [:regex] == TRUE_VALUE end |
#value ⇒ Object
10 11 12 |
# File 'lib/ajax-datatables-rails/datatable/simple_search.rb', line 10 def value [:value] end |