DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+4 =
Submit