Created
November 21, 2008 20:51
-
-
Save quickredfox/27628 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*comment | |
Author: Author's Name | |
Copyright: Copyright Notice (optional) | |
License: License (optional) | |
Source: http://athorshomepage.com/blog (optional) | |
Description: | |
You can enter a description on a separate block | |
as long as it's properly indented like here. | |
A proper description is required! | |
Example: | |
(code) | |
// In this block, you can also write lots a documentation | |
// but make sure you've read the size rules | |
Stating.the("Obvious") // => "Duh!" | |
(end) | |
end*/ | |
var Stating = (function(){ | |
// Do whatever you want here | |
var S = { | |
the: function(string){ | |
if (string.toLowerCase() == 'obvious') | |
return 'Duh!' | |
else | |
return false; | |
} | |
} | |
// Dont forget to return your whatever | |
return S; | |
})(); // important! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment