Exception: Rye::CommandError
Instance Attribute Summary collapse
-
#rap ⇒ Object
readonly
Returns the value of attribute rap.
Instance Method Summary collapse
- #exit_code ⇒ Object
-
#initialize(rap) ⇒ CommandError
constructor
-
rap
a Rye::Rap object.
-
- #message ⇒ Object
- #stderr ⇒ Object
- #stdout ⇒ Object
Constructor Details
#initialize(rap) ⇒ CommandError
-
rap
a Rye::Rap object
73 74 75 |
# File 'lib/rye.rb', line 73 def initialize(rap) @rap = rap end |
Instance Attribute Details
#rap ⇒ Object (readonly)
Returns the value of attribute rap.
71 72 73 |
# File 'lib/rye.rb', line 71 def rap @rap end |
Instance Method Details
#exit_code ⇒ Object
81 |
# File 'lib/rye.rb', line 81 def exit_code; @rap.exit_code if @rap; end |
#message ⇒ Object
76 77 78 |
# File 'lib/rye.rb', line 76 def "%s (code: %s)" % [@rap.stderr.join($/), @rap.exit_code] end |
#stderr ⇒ Object
79 |
# File 'lib/rye.rb', line 79 def stderr; @rap.stderr if @rap; end |
#stdout ⇒ Object
80 |
# File 'lib/rye.rb', line 80 def stdout; @rap.stdout if @rap; end |