Module: Pop::String

Included in:
String
Defined in:
lib/mightystring/string_pop.rb

Instance Method Summary collapse

Instance Method Details

#popObject

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