ruby_inflector 0.0.10

Adds String based inflections for Rust. Snake, kebab, camel, sentence, class, title and table cases as well as ordinalize, deordinalize, demodulize, foreign key, and pluralize/singularize are supported as both traits and pure functions acting on String types. Intended to emulate the behavior of ActiveSupport::Inflector in Ruby as closely as possible. https://api.rubyonrails.org/classes/ActiveSupport/Inflector.html
Documentation
1
2
3
4
5
6
/// Provides foreign key conversion for String.
///
/// Example string `foo` becomes `foo_id`
pub mod foreign_key;
pub use foreign_key::is_foreign_key;
pub use foreign_key::to_foreign_key;