module ROM::Files::Dataset::Sorting
Public Class Methods
included(other)
click to toggle source
Calls superclass method
# 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
Public Instance Methods
sort(sorting = :to_s)
click to toggle source
@return [Dataset]
# File lib/rom/files/dataset/sorting.rb, line 21 def sort(sorting = :to_s) with(sorting: sorting) end