class Consoler::Command

Consoler command

Basically a named hash

@attr_reader [String] command Name of the command @attr_reader [Consoler::Options] options List of all options @attr_reader [Proc] action Action for this command

Attributes

action[R]
command[R]
options[R]

Public Class Methods

new(options) click to toggle source

Create a command

@param [Hash] options @option options [String] :command Name of the command @option options [Consoler::Options] :options List of all options @option options [Proc] :action Action for this command

# File lib/consoler/command.rb, line 22
def initialize(options)
  @command = options[:command]
  @options = options[:options]
  @action = options[:action]
end