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
class String | |
def erb? | |
self[-3..-1] == "erb" | |
end | |
end |