is.rb

lib/rodish/plugins/is.rb
Last Update: 2025-03-13 17:01:44 -0700

The is plugin adds an is method as a shortcut for calling the on method and run method.

For example:

is "hello" do
  :world
end

is equivalent to:

on "hello" do
  run do
    :world
  end
end

The is method also takes args keyword arguments to specify the number of arguments.

This does not allow you to set a command description or usage, so it is not recommended in new code.