Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/pg-verify/core/extensions/array_extensions.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/pg-verify/core/extensions/array_extensions.rb', line 7

def blank?()
    return empty?()
end

#gsub(elem, substitute) ⇒ Object



3
4
5
# File 'lib/pg-verify/core/extensions/array_extensions.rb', line 3

def gsub(elem, substitute)
    return self.map { |orig| orig == elem ? substitute : orig }
end