Module: Sort::AbstractSortBuilder

Included in:
SortBuilder
Defined in:
lib/sort/abstract_sort_builder.rb

Instance Method Summary collapse

Instance Method Details

#doEquals​?(sort) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
7
# File 'lib/sort/abstract_sort_builder.rb', line 4

def doEquals​? sort
  # Checks if given sort object is same as this sort object
  return self.query == sort.query
end

#nameObject



9
10
11
# File 'lib/sort/abstract_sort_builder.rb', line 9

def name
  self.class::NAME.to_s
end