From: marios <mar...@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 <mar...@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