# without a class thing = -> thePrivate = -> console.log "I'm private" thePublic: -> console.log "I'm public" t = thing() t.thePublic() t.thePrivate() # with one class Foo foo = -> "bink" bar: -> console.log "and #{foo()}" g=new Foo g.bar()