Module: GitWand::CLI::Utils

Defined in:
lib/git_wand/cli/utils.rb

Class Method Summary collapse

Class Method Details

.blank?(*list) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
8
9
# File 'lib/git_wand/cli/utils.rb', line 5

def self.blank?(*list)
  list.all? do |value|
    value == nil || value == ""
  end
end

.present?(*list) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
14
15
# File 'lib/git_wand/cli/utils.rb', line 11

def self.present?(*list)
  list.all? do |value|
    value != nil && value != ""
  end
end