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.



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

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

#chomp!(*a) ⇒ CAString

Writes per-cell String#chomp back into self.

Returns:

  • (CAString) —

    the computed values that were written.



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

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.



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

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.



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

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.



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

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

#rstrip! ⇒ CAString

Writes per-cell String#rstrip back into self.

Returns:

  • (CAString) —

    the computed values that were written.



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

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

#strip! ⇒ CAString

Writes per-cell String#strip back into self.

Returns:

  • (CAString) —

    the computed values that were written.



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

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

#swapcase! ⇒ CAString

Writes per-cell String#swapcase back into self.

Returns:

  • (CAString) —

    the computed values that were written.



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

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

#upcase! ⇒ CAString

Writes per-cell String#upcase back into self.

Returns:

  • (CAString) —

    the computed values that were written.



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

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