Module: Ruwi::Utils::Strings

Defined in:
lib/ruwi/runtime/utils/strings.rb

Class Method Summary collapse

Class Method Details

.is_not_blank_or_empty_string(str) ⇒ Boolean

Parameters:

  • str (String)

Returns:

  • (Boolean)


14
15
16
# File 'lib/ruwi/runtime/utils/strings.rb', line 14

def is_not_blank_or_empty_string(str)
  is_not_empty_string(str.strip)
end

.is_not_empty_string(str) ⇒ Boolean

Parameters:

  • str (String)

Returns:

  • (Boolean)


8
9
10
# File 'lib/ruwi/runtime/utils/strings.rb', line 8

def is_not_empty_string(str)
  str != ""
end