Class: Clyops::ParseResult
- Inherits:
-
Struct
- Object
- Struct
- Clyops::ParseResult
- Defined in:
- lib/clyops.rb
Overview
status is “ok”, “help” or “error”.
Instance Attribute Summary collapse
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#error ⇒ Object
Returns the value of attribute error.
-
#show_usage ⇒ Object
Returns the value of attribute show_usage.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, error = "", show_usage = true, detail = []) ⇒ ParseResult
constructor
Create a non-exiting parse outcome.
Constructor Details
#initialize(status, error = "", show_usage = true, detail = []) ⇒ ParseResult
Create a non-exiting parse outcome.
360 |
# File 'lib/clyops.rb', line 360 def initialize(status, error = "", show_usage = true, detail = []) = super |
Instance Attribute Details
#detail ⇒ Object
Returns the value of attribute detail
354 355 356 |
# File 'lib/clyops.rb', line 354 def detail @detail end |
#error ⇒ Object
Returns the value of attribute error
354 355 356 |
# File 'lib/clyops.rb', line 354 def error @error end |
#show_usage ⇒ Object
Returns the value of attribute show_usage
354 355 356 |
# File 'lib/clyops.rb', line 354 def show_usage @show_usage end |
#status ⇒ Object
Returns the value of attribute status
354 355 356 |
# File 'lib/clyops.rb', line 354 def status @status end |