Included modules
Public Instance methods
wrap(prefix, values, separator: " ", limit: 80)
Helper method that takes an array of values, wraps them to the given limit, and adds each line as a separator. This is useful when you have a large amount of information you want to display and you want to wrap if for display to the user when showing options.
[show source]
# File lib/rodish/plugins/wrapped_options_separator.rb 19 def wrap(prefix, values, separator: " ", limit: 80) 20 super.each do |line| 21 separator line 22 end 23 end