lib/interactive/options.rb in interactive-0.6.1 vs lib/interactive/options.rb in interactive-0.6.2
- old
+ new
@@ -21,10 +21,10 @@
wrap_each_option
super(@options)
end
def shortcuts_string
- "[#{first_chars_without_last_slash(first_chars)}]"
+ "[#{OptionsShortcuts.new(first_chars_without_last_slash(first_chars)).minify}]"
end
def shortcuts_meanings
@options.inject("") { |accum, opt| "#{accum} #{opt.shortcut_value} -- #{opt.value}\n"}
end