Skip to content

danielribeiro/rbcoffee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Rubyisms in Coffeescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages