diff options
Diffstat (limited to 'lib/oxidized/string.rb')
-rw-r--r-- | lib/oxidized/string.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/string.rb b/lib/oxidized/string.rb index b334eaa..bcc393a 100644 --- a/lib/oxidized/string.rb +++ b/lib/oxidized/string.rb @@ -2,11 +2,11 @@ module Oxidized # Used in models, contains convenience methods class String < String # @return [Oxidized::String] copy of self with last line removed - def pop + def cut_tail Oxy::String.new each_line.to_a[0..-2].join end # @return [Oxidized::String] copy of self with first line removed - def shift + def cut_head Oxy::String.new each_line.to_a[1..-1].join end end |