Class: CLIUtils::PrefBehavior
- Inherits:
-
Object
- Object
- CLIUtils::PrefBehavior
- Includes:
- Messaging
- Defined in:
- lib/cliutils/prefs/pref_behaviors/pref_behavior.rb
Overview
The generic base class for a Pref Behavior.
Direct Known Subclasses
CapitalizeBehavior, ExpandFilepathBehavior, LowercaseBehavior, PrefixBehavior, SuffixBehavior, TitlecaseBehavior, UppercaseBehavior
Instance Attribute Summary collapse
-
#parameters ⇒ Hash
Holds the parameters associated with this behavior.
Instance Method Summary collapse
-
#evaluate(text = '') ⇒ void
Evaluate the Behavior!.
Methods included from Messaging
Instance Attribute Details
#parameters ⇒ Hash
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!
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 |