Class: CLIUtils::PrefixBehavior
- Inherits:
-
PrefBehavior
- Object
- PrefBehavior
- CLIUtils::PrefixBehavior
- Defined in:
- lib/cliutils/prefs/pref_behaviors/prefix_behavior.rb
Overview
A Behavior to prefix a Pref answer with a string
Instance Attribute Summary
Attributes inherited from PrefBehavior
Instance Method Summary collapse
-
#evaluate(text) ⇒ String
Evaluates the behavior against the text.
Methods included from Messaging
Instance Method Details
#evaluate(text) ⇒ String
Evaluates the behavior against the text.
7 8 9 |
# File 'lib/cliutils/prefs/pref_behaviors/prefix_behavior.rb', line 7 def evaluate(text) @parameters[:prefix] + text.to_s end |