Class: String
Overview
Monkey Patch for String Class
Instance Method Summary collapse
-
#initial ⇒ String
get the first character in a string.
Instance Method Details
#initial ⇒ String
get the first character in a string
original from stackoverflow.com/a/2730984
137 138 139 |
# File 'lib/monkey_patches.rb', line 137 def initial self[0,1] end |