Module: Base

Included in:
Array, FalseClass, Hash, Integer, NilClass, String, TrueClass
Defined in:
lib/zkt_client/monky_patcher/base.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Checks if the object is blank (empty)

Returns:

  • (Boolean)

    true if the object is empty, false otherwise



7
8
9
# File 'lib/zkt_client/monky_patcher/base.rb', line 7

def blank?
  empty?
end

#present?Boolean

Checks if the object is present (not blank)

Returns:

  • (Boolean)

    true if the object is not empty, false otherwise



14
15
16
# File 'lib/zkt_client/monky_patcher/base.rb', line 14

def present?
  !blank?
end