Skip to content

Instantly share code, notes, and snippets.

@plombix

plombix/erb_type.rb

Created Aug 31, 2016
Embed
What would you like to do?
Basic ruby string operation to find if file is '.erb' or not
class String
def erb?
self[-3..-1] == "erb"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment