Class: OptionParser

Inherits:
Object
  • Object
show all
Defined in:
lib/ext/option_parser.rb

Overview

Fix OptionParser#separator’s handling of strings with newlines From rubyforge.org/tracker/?func=detail&atid=1700&aid=9177&group_id=426

Instance Method Summary collapse

Instance Method Details

#separator(string) ⇒ Object



7
8
9
10
11
# File 'lib/ext/option_parser.rb', line 7

def separator(string)
  string.split(/\n/).each do |line|
    top.append(line.chomp, nil, nil)
  end
end