summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-07-21 20:16:41 +0300
committerSaku Ytti <saku@ytti.fi>2014-07-21 20:16:41 +0300
commit6ab92ad7eaba51bb77ad2c5d4bc1b79ef6c1f1b3 (patch)
tree609a769e4dee763d4cbb643e57834520a8b5f8d4 /lib
parent33cb73721db8336ea8d2b8e947bbc38adcf47102 (diff)
make convenience methods usable
Diffstat (limited to 'lib')
-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 bcc393a..35dc5af 100644
--- a/lib/oxidized/string.rb
+++ b/lib/oxidized/string.rb
@@ -3,11 +3,11 @@ module Oxidized
class String < String
# @return [Oxidized::String] copy of self with last line removed
def cut_tail
- Oxy::String.new each_line.to_a[0..-2].join
+ Oxidized::String.new each_line.to_a[0..-2].join
end
# @return [Oxidized::String] copy of self with first line removed
def cut_head
- Oxy::String.new each_line.to_a[1..-1].join
+ Oxidized::String.new each_line.to_a[1..-1].join
end
end
end