Sha256: 2ac0b01f81f1a782cf3179dfc9bdd31827219cd42bfe4b052fa1839ed783ea79

Contents?: true

Size: 170 Bytes

Versions: 1

Compression:

Stored size: 170 Bytes

Contents

class Util

  # ensures whatever is passed in comes out an array of symbols
  class << self
    def prepare(str)
      Array(str).flatten.map(&:to_sym)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
canner-0.4.0 lib/canner/util.rb