Skip to content

Instantly share code, notes, and snippets.

@ryancolorcafe
Created August 1, 2017 18:58
Show Gist options
  • Save ryancolorcafe/77f6e361e7850673eac58e880da39ab0 to your computer and use it in GitHub Desktop.
Save ryancolorcafe/77f6e361e7850673eac58e880da39ab0 to your computer and use it in GitHub Desktop.
Ruby, ERB, and Haml Pry and ByeBug snippets for Atom text editor
# Ruby
'.source.ruby':
'Ruby pry':
'prefix': 'pry'
'body': 'require "pry"\nbinding.pry'
# ERB
'.text.html.ruby,
.text.html.erb':
'ERB pry':
'prefix': 'pry'
'body': '<% require "pry";\nbinding.pry %>'
'ERB byebug':
'prefix': 'bye'
'body': '<% byebug %>'
# Haml
'.text.haml':
'Haml Inspect':
'prefix': 'inspect'
'body': '%p= $1.inspect'
'Haml Pry':
'prefix': 'pry'
'body': '- require "Pry"\n- binding.pry'
'Haml Debug':
'prefix': 'debug'
'body': '= debug $1'
'Haml byebug':
'prefix': 'bye'
'body': '- byebug'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment