module SeedGimmick::SeedIO::ExtType

Constants

CORRECTION

Collection map @note Require Symbol keys and String values.

Public Class Methods

decision(path) click to toggle source

Corrected the fluctuation of extension. @param seed_file [String] @param seed_file [Pathname] @return [String]

# File lib/seed_gimmick/seed_io.rb, line 18
def self.decision(path)
  ext = Inflector.ext_type(path)
  CORRECTION[ext].presence || ext.to_s
end