Exception: Docopt::Exit
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Docopt::Exit
- Defined in:
- lib/docopt.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message = '') ⇒ Exit
constructor
A new instance of Exit.
- #message ⇒ Object
Constructor Details
#initialize(message = '') ⇒ Exit
Returns a new instance of Exit.
21 22 23 |
# File 'lib/docopt.rb', line 21 def initialize(='') @@message = ( + "\n" + @@usage).strip end |
Class Method Details
.set_usage(usage) ⇒ Object
13 14 15 |
# File 'lib/docopt.rb', line 13 def self.set_usage(usage) @@usage = usage ? usage : '' end |
.usage ⇒ Object
9 10 11 |
# File 'lib/docopt.rb', line 9 def self.usage @@usage end |
Instance Method Details
#message ⇒ Object
17 18 19 |
# File 'lib/docopt.rb', line 17 def @@message end |