Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Rubyisms in Coffeescript
CoffeeScript
branch: master
Failed to load latest commit information.
.gitignore changes to readme
README.md updating readme
rbcoffee.coffee better puts

README.md

rbcoffee

Adds some rubyisms and smalltalkisms into Coffeescript (all are top level functions, and in node.js they are module functions):

  • puts
  • raise: throws an error
  • abstract_method: General smalltalkism for abstract methods is to throw Subclass responsability. In smalltalk subclass_responsability is actually a method of Object class, but I'm against libraries adding methods to core classes without some very good justification, and even then it needs to be very very polite and only do it when explicitely requested.
  • define: add a method a class
  • methods: list the instance methods of a class

There are a few other variants of methods. Check the source for more info.

Meta

Created by Daniel Ribeiro

Released under the MIT License: http://www.opensource.org/licenses/mit-license.php

http://github.com/danielribeiro/rbcoffee

Something went wrong with that request. Please try again.