Created
January 22, 2018 23:36
-
-
Save joshlove/2aff302ded038cc462177770ee6d5495 to your computer and use it in GitHub Desktop.
check if first char is upper
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
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