pub fn demodulize(non_demodulize_string: &str) -> String
Expand description

Demodulize a &str

    use inflector::string::demodulize::demodulize;
    let mock_string: &str = "Bar";
    let expected_string: String = "Bar".to_owned();
    let asserted_string: String = demodulize(mock_string);
    assert!(asserted_string == expected_string);
    use inflector::string::demodulize::demodulize;
    let mock_string: &str = "::Bar";
    let expected_string: String = "Bar".to_owned();
    let asserted_string: String = demodulize(mock_string);
    assert!(asserted_string == expected_string);
    use inflector::string::demodulize::demodulize;
    let mock_string: &str = "Foo::Bar";
    let expected_string: String = "Bar".to_owned();
    let asserted_string: String = demodulize(mock_string);
    assert!(asserted_string == expected_string);
    use inflector::string::demodulize::demodulize;
    let mock_string: &str = "Test::Foo::Bar";
    let expected_string: String = "Bar".to_owned();
    let asserted_string: String = demodulize(mock_string);
    assert!(asserted_string == expected_string);