Module: Shift::String
- Included in:
- String
- Defined in:
- lib/mightystring/string_shift.rb
Instance Method Summary collapse
-
#shift ⇒ Object
Shift from start of String.
Instance Method Details
#shift ⇒ Object
Shift from start of String
9 10 11 12 13 |
# File 'lib/mightystring/string_shift.rb', line 9 def shift x = self[0] self.replace self[1..-1] return x end |