Last active
August 29, 2015 14:04
-
-
Save revathskumar/27cecd35b3be1e82e79f 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
# Helper functions | |
# | |
# helper.js.coffee | |
NameSpace.Helpers = | |
a: () -> | |
console.log 'a' | |
b: () -> | |
console.log 'b' | |
# Modules/Classes | |
# users.js.coffee | |
class NameSpace.Users | |
constructor: () -> | |
NameSpace.a() | |
# ANother class | |
# another_class.js.cpffee | |
class NameSpace.AnotherClass | |
constructor: () -> | |
console.log 'constructor' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NameSpace has to be defined first.