fix(guide): update latest copy from guide repo

This commit is contained in:
Mrugesh Mohapatra
2018-10-12 04:30:38 +05:30
committed by mrugesh mohapatra
parent 73a97354e1
commit 7a860204af
833 changed files with 21403 additions and 3264 deletions

View File

@ -11,7 +11,17 @@ Ruby has many built in methods to work with strings. Strings in Ruby by default
"Hello".length #=> 5
"Hello World!".length #=> 12
```
### Empty:
* The `.empty?` method returns `true` if a string has a length of zero.
```ruby
"Hello".empty? #=> false
"!".empty? #=> false
" ".empty? #=> false
"".empty? #=> true
```
### Count:
* The `.count` method counts how many times a specific character(s) is found in a string.