Class: CLIUtils::PrefBehavior

Inherits:
Object
  • Object
show all
Includes:
Messaging
Defined in:
lib/cliutils/prefs/pref_behaviors/pref_behavior.rb

Overview

The generic base class for a Pref Behavior.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Messaging

#messenger

Instance Attribute Details

#parametersHash

Holds the parameters associated with this behavior.



10
11
12
# File 'lib/cliutils/prefs/pref_behaviors/pref_behavior.rb', line 10

def parameters
  @parameters
end

Instance Method Details

#evaluate(text = '') ⇒ void

This method returns an undefined value.

Evaluate the Behavior!

Raises:

  • (StandardError)

    if the subclass doesn’t implement this method.



17
18
19
# File 'lib/cliutils/prefs/pref_behaviors/pref_behavior.rb', line 17

def evaluate(text = '')
  fail "`evaluate` method not implemented on caller: #{ self.class }"
end