Sha256: cad24fb4bc8d5ac2c73629160faa9a46579ebcb294f74f75f0db92ed9edb955a
Contents?: true
Size: 569 Bytes
Versions: 21
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true # LogicChecker ported from Java # # @author Royce Remulla # class LogicChecker # Perform logical AND operation on two arguments. # # @param argument1 first argument of Boolean type. # @param argument2 second argument of Boolean type. def and(argument1, argument2) argument1 && argument2 end # Perform logical OR operation on two arguments. # # @param argument1 first argument of Boolean type. # @param argument2 second argument of Boolean type. def or(argument1, argument2) argument1 || argument2 end end
Version data entries
21 entries across 21 versions & 1 rubygems