Sha256: d0f560968e1d4c38be8a06c60f531128158f70bbc835536080bd3b1e2963947f
Contents?: true
Size: 306 Bytes
Versions: 16
Compression:
Stored size: 306 Bytes
Contents
module CLIUtils # A Behavior to suffix a Pref answer with a string class SuffixBehavior < PrefBehavior # Evaluates the behavior against the text. # @param [Object] text The "text" to evaluate # @return [String] def evaluate(text) text.to_s + @parameters[:suffix] end end end
Version data entries
16 entries across 16 versions & 1 rubygems