Class: SDL::Name

Inherits:
String
  • Object
show all
Defined in:
lib/sdl/name.rb

Overview

An extension of a string that will format a name

Instance Method Summary collapse

Instance Method Details

#camelString

Returns:

  • (String)


35
# File 'lib/sdl/name.rb', line 35

inflect :camel, %i[lower_camelize]

#camelsString

Returns:

  • (String)


36
# File 'lib/sdl/name.rb', line 36

inflect :camels, %i[pluralize lower_camelize]

#descriptionString

Returns:

  • (String)


45
# File 'lib/sdl/name.rb', line 45

inflect :description, %i[lower_humanize]

#descriptionsString

Returns:

  • (String)


46
# File 'lib/sdl/name.rb', line 46

inflect :descriptions, %i[pluralize lower_humanize]

#entitiesString

Returns:

  • (String)


40
# File 'lib/sdl/name.rb', line 40

inflect :entities, %i[pluralize camelize]

#entityString

Returns:

  • (String)


39
# File 'lib/sdl/name.rb', line 39

inflect :entity, %i[camelize]

#labelString

Returns:

  • (String)


43
# File 'lib/sdl/name.rb', line 43

inflect :label, %i[humanize]

#labelsString

Returns:

  • (String)


44
# File 'lib/sdl/name.rb', line 44

inflect :labels, %i[pluralize humanize]

#paramString

Returns:

  • (String)


37
# File 'lib/sdl/name.rb', line 37

inflect :param, %i[dasherize]

#paramsString

Returns:

  • (String)


38
# File 'lib/sdl/name.rb', line 38

inflect :params, %i[pluralize dasherize]

#pluralString

Returns:

  • (String)


30
# File 'lib/sdl/name.rb', line 30

inflect :plural, %i[pluralize]

#screamString

Returns:

  • (String)


33
# File 'lib/sdl/name.rb', line 33

inflect :scream, %i[underscore upcase]

#screamsString

Returns:

  • (String)


34
# File 'lib/sdl/name.rb', line 34

inflect :screams, %i[pluralize underscore upcase]

#snakeString

Returns:

  • (String)


31
# File 'lib/sdl/name.rb', line 31

inflect :snake, %i[underscore]

#snakesString

Returns:

  • (String)


32
# File 'lib/sdl/name.rb', line 32

inflect :snakes, %i[underscore pluralize]

#tableString

Returns:

  • (String)


29
# File 'lib/sdl/name.rb', line 29

inflect :table, %i[tableize]

#titleString

Returns:

  • (String)


41
# File 'lib/sdl/name.rb', line 41

inflect :title, %i[titleize]

#titlesString

Returns:

  • (String)


42
# File 'lib/sdl/name.rb', line 42

inflect :titles, %i[pluralize titleize]