Created
August 1, 2017 18:58
-
-
Save ryancolorcafe/77f6e361e7850673eac58e880da39ab0 to your computer and use it in GitHub Desktop.
Ruby, ERB, and Haml Pry and ByeBug snippets for Atom text editor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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