Module: ROM::Files::Dataset::Sorting
- Included in:
- ROM::Files::Dataset
- Defined in:
- lib/rom/files/dataset/sorting.rb
Instance Attribute Summary collapse
- #sorting ⇒ Symbol, ... readonly
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#sorting ⇒ Symbol, ... (readonly)
|
# File 'lib/rom/files/dataset/sorting.rb', line 17
|
Class Method Details
.included(other) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/rom/files/dataset/sorting.rb', line 9 def self.included(other) super(other) other.module_eval do option :sorting, Types::Symbol.optional, default: proc { nil } end end |
Instance Method Details
#sort(sorting = :to_s) ⇒ Dataset
21 22 23 |
# File 'lib/rom/files/dataset/sorting.rb', line 21 def sort(sorting = :to_s) with(sorting: sorting) end |