Class: String

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/zkt_client/monky_patcher/string.rb

Overview

Extends the String class with additional methods

Instance Method Summary collapse

Methods included from Base

#present?

Instance Method Details

#blank?Boolean

Checks if the string is blank (empty or contains only whitespace)

Returns:

  • (Boolean)

    true if the string is empty or contains only whitespace, false otherwise



12
13
14
# File 'lib/zkt_client/monky_patcher/string.rb', line 12

def blank?
  strip.empty?
end