Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

chop! ruby

"string
".chop   #=> "string"
"string

".chop   #=> "string
"
"string
".chop     #=> "string"
"string".chop       #=> "strin"
"x".chop.chop       #=> ""
Source by apidock.com #
 
PREVIOUS NEXT
Tagged: #ruby
ADD COMMENT
Topic
Name
9+8 =