Module: AyeCommander::Status::Writeable
- Included in:
- Command
- Defined in:
- lib/aye_commander/status.rb
Overview
This module defines methods that allow to modify the status
Instance Attribute Summary collapse
-
#status ⇒ Object
writeonly
Sets the attribute status.
Instance Method Summary collapse
-
#fail!(status = :failure) ⇒ Object
Fails the status.
Instance Attribute Details
#status=(value) ⇒ Object (writeonly)
Sets the attribute status
40 41 42 |
# File 'lib/aye_commander/status.rb', line 40 def status=(value) @status = value end |
Instance Method Details
#fail!(status = :failure) ⇒ Object
Fails the status
43 44 45 |
# File 'lib/aye_commander/status.rb', line 43 def fail!(status = :failure) @status = status end |