Module: Cheveret::Table::Sorting::Sortable

Defined in:
lib/cheveret/table/sorting.rb

Overview

ClassMethods

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#default_sort_directionObject

Returns the value of attribute default_sort_direction.



64
65
66
# File 'lib/cheveret/table/sorting.rb', line 64

def default_sort_direction
  @default_sort_direction
end

#sortableObject

Returns the value of attribute sortable.



64
65
66
# File 'lib/cheveret/table/sorting.rb', line 64

def sortable
  @sortable
end

Instance Method Details

#sortable?Boolean

whether or not sorting the table by this column is allowed. default false

Returns:

  • (Boolean)


69
70
71
# File 'lib/cheveret/table/sorting.rb', line 69

def sortable?
  sortable == true
end