class Jets::Inflections

def base

base custom inflections
def base
  {
    sns: 'sns',
    sqs: 'sqs'
  }
end

def custom

User defined custom inflections
def custom
  path = "#{Jets.root}/config/inflections.yml"
  File.exist?(path) ? YAML.load_file(path) : {}
end

def load(inflect, inflections)

def load(inflect, inflections)
  inflections.each do |k,v|
    inflect.irregular k,v
  end
end

def load!

def load!
  ActiveSupport::Inflector.inflections(:en) do |inflect|
    load(inflect, base)
    load(inflect, custom)
  end
end