summaryrefslogtreecommitdiff
path: root/sample/from.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/from.rb')
-rw-r--r--sample/from.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/sample/from.rb b/sample/from.rb
index 93b6c4b..c458b4e 100644
--- a/sample/from.rb
+++ b/sample/from.rb
@@ -17,6 +17,8 @@ class String
len += 1
me = self[0, len].ljust(len)
if me =~ /.$/ and $&.size == 2
+ p me[-2..-1]
+ me[-2..-1] = ' '
me[-2, 2] = ' '
end
me.chop!