A blog about software by Alexander YaƤkov Garber.

Adding a Snippet for Ruby in Atom Text Editor

Actually unnecessary, as Atom's Ruby bundle already has this built in, but I realised this after I had worked out a "class" snippet.


'.source.ruby':
'Console class':
'prefix': 'class'
'body': 'class ${1:method_name}\n\t$0\nend'

Oh well, I learned a bit about CSON.


all tags