Feed

makevoid's blog

18 Mar 2010

cladm - datamapper class textmate snippet

class ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}}
include DataMapper::Resource

property :id, Serial property :name, String ${2:}

end

p.s: syntax highlighting coming soon :)

...
 
back to posts