module Rodish::Plugins::Is::DSLMethods

  1. lib/rodish/plugins/is.rb

Methods

Public Instance

  1. is

Public Instance methods

is(command_name, args: 0, &block)

A shortcut for calling on and run.

is "hello" do
  :world
end

is equivalent to:

on "hello" do
  run do
    :world
  end
end

The args argument sets the number of arguments supported by the command.

[show source]
   # File lib/rodish/plugins/is.rb
47 def is(command_name, args: 0, &block)
48   _is(:on, command_name, args:, &block)
49 end