C# Class System.Web.Mvc.IronRuby.Extensions.Inflector

Show file Open project: jschementi/ironrubymvc

Public Methods

Method Description
Camelize ( this lowercaseAndUnderscoredWord ) : string
Dasherize ( this underscoredWord ) : string
Humanize ( this lowercaseAndUnderscoredWord ) : string
Ordinalize ( this number ) : string
Pascalize ( this lowercaseAndUnderscoredWord ) : string
Pluralize ( this word ) : string
Singularize ( this word ) : string
Titleize ( this word ) : string

Private Methods

Method Description
AddIrregular ( string singular, string plural ) : void
AddPlural ( string rule, string replacement ) : void
AddSingular ( string rule, string replacement ) : void
AddUncountable ( string word ) : void
ApplyRules ( IList rules, string word ) : string
Capitalize ( this word ) : string
Inflector ( ) : System.Collections.Generic
Uncapitalize ( this word ) : string
Underscore ( this pascalCasedWord ) : string

Method Details

Camelize() public static method

public static Camelize ( this lowercaseAndUnderscoredWord ) : string
lowercaseAndUnderscoredWord this
return string

Dasherize() public static method

public static Dasherize ( this underscoredWord ) : string
underscoredWord this
return string

Humanize() public static method

public static Humanize ( this lowercaseAndUnderscoredWord ) : string
lowercaseAndUnderscoredWord this
return string

Ordinalize() public static method

public static Ordinalize ( this number ) : string
number this
return string

Pascalize() public static method

public static Pascalize ( this lowercaseAndUnderscoredWord ) : string
lowercaseAndUnderscoredWord this
return string

Pluralize() public static method

public static Pluralize ( this word ) : string
word this
return string

Singularize() public static method

public static Singularize ( this word ) : string
word this
return string

Titleize() public static method

public static Titleize ( this word ) : string
word this
return string