Class: CLIUtils::ExpandFilepathBehavior
- Inherits:
-
PrefBehavior
- Object
- PrefBehavior
- CLIUtils::ExpandFilepathBehavior
- Defined in:
- lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb
Overview
A Behavior to run File.expand_path on a Pref answer
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.
8 9 10 |
# File 'lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb', line 8 def evaluate(text) File.(text.to_s) end |