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

Version Path
rast-0.15.1 examples/logic_checker.rb
rast-0.14.0 examples/logic_checker.rb
rast-0.11.4 examples/logic_checker.rb
rast-0.11.3 examples/logic_checker.rb
rast-0.11.1 examples/logic_checker.rb
rast-0.11.0 examples/logic_checker.rb
rast-0.10.0 examples/logic_checker.rb
rast-0.9.0 examples/logic_checker.rb
rast-0.9.0.pre examples/logic_checker.rb
rast-0.8.1.pre examples/logic_checker.rb
rast-0.8.0.pre examples/logic_checker.rb
rast-0.6.2.pre examples/logic_checker.rb
rast-0.6.1.pre examples/logic_checker.rb
rast-0.6.0.pre examples/logic_checker.rb
rast-0.4.2.pre examples/logic_checker.rb
rast-0.4.1.pre examples/logic_checker.rb
rast-0.4.0.pre examples/logic_checker.rb
rast-0.3.0.pre examples/logic_checker.rb
rast-0.1.2.pre examples/logic_checker.rb
rast-0.1.1.pre examples/logic_checker.rb