Sha256: a3d2cc18418c0ce6b7495f334d26ef465141c09c47c60633c3ebec485b6ee323

Contents?: true

Size: 407 Bytes

Versions: 6

Compression:

Stored size: 407 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

    def normalize_matching(default = :pattern)
      to_s.normalize_matching(default)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
doing-2.1.9 lib/doing/symbol.rb
doing-2.1.8 lib/doing/symbol.rb
doing-2.1.7 lib/doing/symbol.rb
doing-2.1.6 lib/doing/symbol.rb
doing-2.1.6pre lib/doing/symbol.rb
doing-2.1.5pre lib/doing/symbol.rb