<p>I'm expanding my Ruby understanding by coding an equivalent of Kent Beck's xUnit in Ruby.  Python (which Kent writes in) has an assert() method in the language which is used extensively.  Ruby does not.  I think it should be easy to add this but is Kernel the right place to put it?</p>

<p>BTW, <em>I know of the existence of the various Unit frameworks in Ruby</em> - this is an exercise to learn the Ruby idioms, rather than to "get something done".</p>

What's your reason for adding the assert method to the Kernel module? Why not just use another module called
```
Assertions
```
or something?
Like this:
```
```
module Assertions
  def assert(param)
    # do something with param
  end

  # define more assertions here
end
```
```
If you really need your assertions to be available
everywhere
do something like this:
```
```
class Object
  include Assertions
end
```
```
Disclaimer: I didn't test the code but in principle I would do it like this.