incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
Subject [PATCH] Remove capitalize from core-ext/string.rb ... to address JIRA DTACLOUD104
Date Tue, 15 Nov 2011 12:44:08 GMT
From: marios <marios@redhat.com>

https://issues.apache.org/jira/browse/DTACLOUD-104
May be a typo but not sure what the intended behaviour was here. Ruby already provides a
capitalize ("String" from "STRING" or "sTRiNG") and also an  'upcase'
("STRING" from "StrING" or "string").

Signed-off-by: marios <marios@redhat.com>
---
 server/lib/deltacloud/core_ext/string.rb |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/server/lib/deltacloud/core_ext/string.rb b/server/lib/deltacloud/core_ext/string.rb
index c5d9bf3..70d0df6 100644
--- a/server/lib/deltacloud/core_ext/string.rb
+++ b/server/lib/deltacloud/core_ext/string.rb
@@ -59,7 +59,4 @@ class String
     self[0, 1].downcase + self[1..-1]
   end
 
-  def capitalize
-    self[0, 1].upcase + self[1..-1]
-  end
 end
-- 
1.7.6.4


Mime
View raw message