Class Helpers
Object
|
+--Helpers
- class
Helpers
Defined in helpers.js
Method Summary |
object the decoded .json configuration file.
|
loadConfiguration(<string> name)
Loads in a .json configuration file.
|
{string}
|
stringToActionName(<string> string, <string> character)
Converts a string with hyphens to a camel-case action name.
|
{string}
|
stringToClassName(<string> string, <string> character)
Converts a string with hyphens to a string with capitalized
first letters.
|
Helpers
Helpers()
loadConfiguration
object the decoded .json configuration file. loadConfiguration(<string> name)
Loads in a .json configuration file.
Parameters:
name
- the name of the configuration file to load from config/.
stringToActionName
{string} stringToActionName(<string> string, <string> character)
Converts a string with hyphens to a camel-case action name.
Parameters:
string
- the string that should be converted into an action.
character
- the character to join on, usually '-'.
Returns:
a string with a lower-case first letter in camel case.
stringToClassName
{string} stringToClassName(<string> string, <string> character)
Converts a string with hyphens to a string with capitalized
first letters.
Parameters:
string
- the string that should be converted into an action.
character
- the character to join on, usually '-'.
Returns:
a string with an upper-case first letter in camel case.
Documentation generated by
JSDoc on Sun May 9 00:47:14 2010