summaryrefslogtreecommitdiff
path: root/lib/oxidized/string.rb
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-04-16 10:04:12 +0300
committerSaku Ytti <saku@ytti.fi>2014-04-16 10:04:12 +0300
commitd74a152bba73095a0c7090dc078a7023eeb9ad18 (patch)
tree43f0a47fc93bcdd22f5799d41989582fc57c1cc9 /lib/oxidized/string.rb
parent2af41e1769225ac42027f2f686763389296bab79 (diff)
remove web API
It is now separately in oxidized-web package
Diffstat (limited to 'lib/oxidized/string.rb')
-rw-r--r--lib/oxidized/string.rb4
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