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
-
rapa Rye::Rap object.
-
- #message ⇒ Object
- #stderr ⇒ Object
- #stdout ⇒ Object
Constructor Details
#initialize(rap) ⇒ CommandError
-
rapa Rye::Rap object
77 78 79 |
# File 'lib/rye.rb', line 77 def initialize(rap) @rap = rap end |
Instance Attribute Details
#rap ⇒ Object (readonly)
Returns the value of attribute rap.
75 76 77 |
# File 'lib/rye.rb', line 75 def rap @rap end |
Instance Method Details
#exit_code ⇒ Object
85 |
# File 'lib/rye.rb', line 85 def exit_code; @rap.exit_code if @rap; end |
#message ⇒ Object
80 81 82 |
# File 'lib/rye.rb', line 80 def "%s (code: %s)" % [@rap.stderr.join($/), @rap.exit_code] end |
#stderr ⇒ Object
83 |
# File 'lib/rye.rb', line 83 def stderr; @rap.stderr if @rap; end |
#stdout ⇒ Object
84 |
# File 'lib/rye.rb', line 84 def stdout; @rap.stdout if @rap; end |