Sha256: 6ab556d3cabf2bbaabca2018a3e055b6b805183045524cd9b653fffb834ef056

Contents?: true

Size: 312 Bytes

Versions: 19

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true

module Doing
  ##
  ## Symbol helpers
  ##
  class ::Symbol
    def normalize_bool(default = :and)
      to_s.normalize_bool(default)
    end

    def normalize_order(default = 'asc')
      to_s.normalize_order(default)
    end

    def normalize_case
      self
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
doing-2.1.4pre lib/doing/symbol.rb
doing-2.1.3 lib/doing/symbol.rb
doing-2.1.2pre lib/doing/symbol.rb
doing-2.1.1pre lib/doing/symbol.rb
doing-2.1.0pre lib/doing/symbol.rb
doing-2.0.25 lib/doing/symbol.rb
doing-2.0.24 lib/doing/symbol.rb
doing-2.0.23 lib/doing/symbol.rb
doing-2.0.22 lib/doing/symbol.rb
doing-2.0.21 lib/doing/symbol.rb
doing-2.0.20 lib/doing/symbol.rb
doing-2.0.19 lib/doing/symbol.rb
doing-2.0.18 lib/doing/symbol.rb
doing-2.0.17 lib/doing/symbol.rb
doing-2.0.16 lib/doing/symbol.rb
doing-2.0.15 lib/doing/symbol.rb
doing-2.0.13 lib/doing/symbol.rb
doing-2.0.11 lib/doing/symbol.rb
doing-2.0.10 lib/doing/symbol.rb