Module: ProgramExitFromError::ClassMethods
- Defined in:
- lib/program_exit_from_error.rb
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
Instance Method Summary collapse
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
41 42 43 |
# File 'lib/program_exit_from_error.rb', line 41 def exit_code @exit_code end |
Instance Method Details
#exit_with_code(n) ⇒ Object
37 38 39 |
# File 'lib/program_exit_from_error.rb', line 37 def exit_with_code(n) @exit_code = n end |