Exception: Rye::Err
Instance Attribute Summary collapse
-
#rap ⇒ Object
readonly
Returns the value of attribute rap.
Instance Method Summary collapse
- #exit_status ⇒ Object
-
#initialize(rap) ⇒ Err
constructor
-
rapa Rye::Rap object.
-
- #message ⇒ Object
- #stderr ⇒ Object
- #stdout ⇒ Object
Constructor Details
#initialize(rap) ⇒ Err
-
rapa Rye::Rap object
97 98 99 |
# File 'lib/rye.rb', line 97 def initialize(rap) @rap = rap end |
Instance Attribute Details
#rap ⇒ Object (readonly)
Returns the value of attribute rap.
95 96 97 |
# File 'lib/rye.rb', line 95 def rap @rap end |
Instance Method Details
#exit_status ⇒ Object
105 |
# File 'lib/rye.rb', line 105 def exit_status; @rap.exit_status if @rap; end |
#message ⇒ Object
100 101 102 |
# File 'lib/rye.rb', line 100 def "%s (cmd: %s; status: %s)" % [@rap.stderr.join($/), @rap.cmd, @rap.exit_status] end |
#stderr ⇒ Object
103 |
# File 'lib/rye.rb', line 103 def stderr; @rap.stderr if @rap; end |
#stdout ⇒ Object
104 |
# File 'lib/rye.rb', line 104 def stdout; @rap.stdout if @rap; end |