lib/object_extra.rb
# Force characters starting at the specified index and for the number of
# characters given by length to upper case. By default, the first (leftmost)
# character will be forced to upper case. Do not change the original
# string.
# * Argument _index_: The starting character of the sequence to be converted
#   to upper case. The first character of the string has an index of 0.
# * Argument _length_: The number of characters to be converted to upper case.
Force characters starting at the specified index and for the number of
characters given by length to upper case. By default, the first (leftmost)
character will be forced to upper case. Do not change the original
string.
Argument _index_: The starting character of the sequence to be converted
to upper case. The first character of the string has an index of 0.
Argument _length_: The number of characters to be converted to upper case.
Force characters starting at the specified index and for the number of characters given by length to upper case . By default the first ( leftmost ) character will be forced to upper case . Do not change the original string . Argument _index_ : The starting character of the sequence to be converted to upper case . The first character of the string has an index of 0 . Argument _length_ : The number of characters to be converted to upper case .
def upcase_chars(index=0, length=1)
    s = String.new(self)
    s.upcase_chars!(index, length)
    s
  end
def upcase_chars ( index = 0 , length = 1 ) s = String . new ( self ) s . upcase_chars! ( index , length ) s end
Force characters starting at the specified index and for the number of
characters given by length to upper case.
Force characters starting at the specified index and for the number of characters given by length to upper case .
index
<not_specific>
length
<not_specific>