Skip to content

Instantly share code, notes, and snippets.

@keikun17
Created February 28, 2014 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keikun17/9264032 to your computer and use it in GitHub Desktop.
Save keikun17/9264032 to your computer and use it in GitHub Desktop.
Trying out snippets
# Does not work
'.source.rb':
'Ruby method':
'prefix': 'rm'
'body':
'def $1 end'
# Does not work either
'.text.rb':
'Ruby method':
'prefix': 'rm'
'body':
'def $1 end'
@keikun17
Copy link
Author

this works

# This works
'.source.ruby':
  'Ruby method':
    'prefix': 'rm'
    'body':
      'def $1 \n $2 \nend'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment