Skip to content

Instantly share code, notes, and snippets.

@joshlove
Created January 22, 2018 23:36
Show Gist options
  • Save joshlove/2aff302ded038cc462177770ee6d5495 to your computer and use it in GitHub Desktop.
Save joshlove/2aff302ded038cc462177770ee6d5495 to your computer and use it in GitHub Desktop.
check if first char is upper
class String
def is_first_char_upper?
self[0] == self[0].upcase
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment