Module: Pop::String
- Included in:
- String
- Defined in:
- lib/mightystring/string_pop.rb
Instance Method Summary collapse
-
#pop ⇒ Object
Pop character from String.
Instance Method Details
#pop ⇒ Object
Pop character from String
9 10 11 12 13 |
# File 'lib/mightystring/string_pop.rb', line 9 def pop x = self[-1] self.replace self.chop return x end |