module Postmark
  module Inflector

    extend self

    def to_postmark(name)
      name.to_s.split('_').map { |part| part.capitalize }.join('')
    end

    def to_ruby(name)
      name.scan(/[A-Z][a-z]+/).join('_').downcase.to_sym
    end
  end
end
module Postmark
  module Inflector

    extend self

    def to_postmark(name)
      name.to_s.split('_').map { |part| part.capitalize }.join('')
    end

    def to_ruby(name)
      name.scan(/[A-Z][a-z]*/).join('_').downcase.to_sym
    end
  end
end
Fix a possible problem in Regexp used in Postmark::Inflector.
Fix a possible problem in Regexp used in Postmark::Inflector.
