Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rubyisms in Coffeescript

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 rbcoffee.coffee
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.