blob: eb68edb10c449fdbf48a2e72d54b7b0f0e84b14a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
Returns the count of characters (not bytes) in +self+:
'foo'.length # => 3
'こんにちは'.length # => 5
Contrast with String#bytesize:
'foo'.bytesize # => 3
'こんにちは'.bytesize # => 15
Related: see {Querying}[rdoc-ref:String@Querying].
|