Sha256: 2b55c852c2300750dbe19d2ebd61429c1bae9a00b64b8e697187be0dbae38fcb

Contents?: true

Size: 287 Bytes

Versions: 14

Compression:

Stored size: 287 Bytes

Contents

# frozen_string_literal: true

module Sort
  module FormattingHelper
    def ascending_str(format)
      return 'asc' if format.to_s == 'short'

      'ascending'
    end

    def descending_str(format)
      return 'desc' if format.to_s == 'short'

      'descending'
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
actionset-0.11.0 lib/action_set/helpers/sort/formatting_helper.rb
actionset-0.10.0 lib/action_set/helpers/sort/formatting_helper.rb
actionset-0.9.2 lib/action_set/helpers/sort/formatting_helper.rb
actionset-0.9.1 lib/action_set/helpers/sort/formatting_helper.rb
actionset-0.8.2 lib/action_set/helpers/sort/formatting_helper.rb
actionset-0.8.1 lib/action_set/helpers/sort/formatting_helper.rb
actionset-0.8.0 lib/action_set/helpers/sort/formatting_helper.rb
actionset-0.7.0 lib/action_set/helpers/sort/formatting_helper.rb
actionset-0.6.0 lib/action_set/helpers/sort/formatting_helper.rb
actionset-0.5.4 lib/action_set/helpers/sort/formatting_helper.rb
actionset-0.5.3 lib/action_set/helpers/sort/formatting_helper.rb
actionset-0.5.2 lib/action_set/helpers/sort/formatting_helper.rb
actionset-0.5.1 lib/action_set/helpers/sort/formatting_helper.rb
actionset-0.5.0 lib/action_set/helpers/sort/formatting_helper.rb