Sha256: 20941718b213c7dea0dc00f180f9abcc18b5d75159066e90eaed61f1f939e298
Contents?: true
Size: 645 Bytes
Versions: 1
Compression:
Stored size: 645 Bytes
Contents
# frozen_string_literal: true # LogicChecker ported from Java # # @author Royce Remulla # class Lohika # Perform logical AND operation on two arguments. # # @param argument1 first argument of Boolean type. # @param argument2 second argument of Boolean type. def at(argument1, argument2) return :oo if argument1 == 'oo' && argument2 == 'oo' :hindi end # Perform logical OR operation on two arguments. # # @param argument1 first argument of Boolean type. # @param argument2 second argument of Boolean type. def o(argument1, argument2) return :oo if argument1 == 'oo' || argument2 == 'oo' :hindi end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rast-0.18.0 | examples/lohika.rb |