lib/posthog/field_parser.rb
def check_presence!(obj, name)
        if obj.nil? || (obj.is_a?(String) && obj.empty?)
          raise ArgumentError, "#{name} must be given"
        end
      end
# private: Ensures that a string is non-empty
#
# obj    - String|Number that must be non-blank
# name   - Name of the validated value
Ensures that a string is non-empty
obj    - String|Number that must be non-blank
name   - Name of the validated value
Ensures that a string is non - empty obj - String|Number that must be non - blank name - Name of the validated value
def check_presence!(obj, name)
        if obj.nil? || (obj.is_a?(String) && obj.empty?)
          raise ArgumentError, "#{name} must be given"
        end
      end
def check_presence! ( obj , name ) if obj . nil? || ( obj . is_a? ( String ) && obj . empty? ) raise ArgumentError , "#{name} must be given" end end
private: Ensures that a string is non-empty
obj    - String|Number that must be non-blank
name   - Name of the validated value
private : Ensures that a string is non - empty obj - String|Number that must be non - blank name - Name of the validated value
obj
name