Class: OptionParser
- Inherits:
-
Object
- Object
- OptionParser
- Defined in:
- lib/minitest/sprint_plugin.rb
Overview
:stopdoc:
Instance Method Summary collapse
Instance Method Details
#alias(from, to) ⇒ Object
8 |
# File 'lib/minitest/sprint_plugin.rb', line 8 def alias(from, to) = (dict = topdict(from) and dict[to] = dict[from]) |
#deprecate(from, to) ⇒ Object
6 |
# File 'lib/minitest/sprint_plugin.rb', line 6 def deprecate(from, to) = hidden(from) { abort "#{from} is deprecated. Use #{to}." } |
#hidden ⇒ Object
5 |
# File 'lib/minitest/sprint_plugin.rb', line 5 def hidden(...) = define(...).tap { |sw| def sw.summarize(*) = nil } |
#topdict(name) ⇒ Object
7 |
# File 'lib/minitest/sprint_plugin.rb', line 7 def topdict(name) = name.length > 1 ? top.long : top.short |