Sha256: 23199ce780e07380978ed191a91635a2a2175a7d5a1689177f48ce384c115253

Contents?: true

Size: 316 Bytes

Versions: 16

Compression:

Stored size: 316 Bytes

Contents

module CLIUtils
  # A Behavior to run File.expand_path on a
  # Pref answer
  class ExpandFilepathBehavior < PrefBehavior
    # Evaluates the behavior against the text.
    # @param [Object] text The "text" to evaluate
    # @return [String]
    def evaluate(text)
      File.expand_path(text.to_s)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cliutils-2.2.6 lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb
cliutils-2.2.5 lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb
cliutils-2.2.4 lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb
cliutils-2.2.3 lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb
cliutils-2.2.2 lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb
cliutils-2.2.1 lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb
cliutils-2.2.0 lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb
cliutils-2.1.4 lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb
cliutils-2.1.3 lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb
cliutils-2.1.2 lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb
cliutils-2.1.1 lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb
cliutils-2.1.0 lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb
cliutils-2.0.3 lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb
cliutils-2.0.2 lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb
cliutils-2.0.1 lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb
cliutils-2.0.0 lib/cliutils/prefs/pref_behaviors/expand_filepath_behavior.rb