Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby remove last element of string

'abc1234'.chomp(4) # => 'abc123'
'toto'.chomp('to') # => 'to'
 
PREVIOUS NEXT
Tagged: #ruby #remove #element #string
ADD COMMENT
Topic
Name
9+4 =