module RubyUnit

A Simple Unit Test Framework for Ruby

The RubyModule is the root object for all RubyUnit modules and classes.

Constants

INVALID_DEBUG_MODE

Error message

TYPE
VERSION

Current RubyUnit version

Public Class Methods

debug() click to toggle source

Get the current debug mode

# File lib/RubyUnit.rb, line 33
def self.debug
  @@debug
end
debug=(bool) click to toggle source

Set debug mode

  • raises TypeError if bool is not a Boolean

bool

New value for debug mode

# File lib/RubyUnit.rb, line 25
def self.debug= bool
  raise TypeError, INVALID_DEBUG_MODE unless [true, false].include? bool
  @@debug = bool
end