Module: CArray::StringOperationMixin::Mutable

Included in:
CAFixlenString, CAString
Defined in:
lib/carray/string_operation_extension.rb

Overview

In-place transforms, mixed into the mutable Faces only (CAString / CAFixlenString); CAConstString is read-only and does not include it.

Instance Method Summary collapse

Instance Method Details

#capitalize!CAString

Writes per-cell String#capitalize back into self.

Returns:

  • (CAString)

    the computed values that were written.



246
# File 'lib/carray/string_operation_extension.rb', line 246

def capitalize! () ; self[] = capitalize ; end

#chomp!(*a) ⇒ CAString

Writes per-cell String#chomp back into self.

Returns:

  • (CAString)

    the computed values that were written.



261
# File 'lib/carray/string_operation_extension.rb', line 261

def chomp! (*a)    ; self[] = chomp(*a) ; end

#downcase!CAString

Writes per-cell String#downcase back into self.

Returns:

  • (CAString)

    the computed values that were written.



243
# File 'lib/carray/string_operation_extension.rb', line 243

def downcase! ()   ; self[] = downcase ; end

#gsub!(*a, &b) ⇒ CAString

Writes per-cell String#gsub back into self.

Returns:

  • (CAString)

    the computed values that were written.



264
# File 'lib/carray/string_operation_extension.rb', line 264

def gsub! (*a, &b) ; self[] = gsub(*a, &b) ; end

#lstrip!CAString

Writes per-cell String#lstrip back into self.

Returns:

  • (CAString)

    the computed values that were written.



255
# File 'lib/carray/string_operation_extension.rb', line 255

def lstrip! ()     ; self[] = lstrip ; end

#rstrip!CAString

Writes per-cell String#rstrip back into self.

Returns:

  • (CAString)

    the computed values that were written.



258
# File 'lib/carray/string_operation_extension.rb', line 258

def rstrip! ()     ; self[] = rstrip ; end

#strip!CAString

Writes per-cell String#strip back into self.

Returns:

  • (CAString)

    the computed values that were written.



252
# File 'lib/carray/string_operation_extension.rb', line 252

def strip! ()      ; self[] = strip ; end

#swapcase!CAString

Writes per-cell String#swapcase back into self.

Returns:

  • (CAString)

    the computed values that were written.



249
# File 'lib/carray/string_operation_extension.rb', line 249

def swapcase! ()   ; self[] = swapcase ; end

#upcase!CAString

Writes per-cell String#upcase back into self.

Returns:

  • (CAString)

    the computed values that were written.



240
# File 'lib/carray/string_operation_extension.rb', line 240

def upcase! ()     ; self[] = upcase ; end