Class: NilClass
- Inherits:
-
Object
- Object
- NilClass
- Defined in:
- lib/proutils/rtar/rtar.rb
Instance Method Summary collapse
-
#status(*status) ⇒ Object
Nil#status makes it possible to pass messages through a “failure” chain.
-
#status? ⇒ Boolean
Check status.
Instance Method Details
#status(*status) ⇒ Object
Nil#status makes it possible to pass messages through a “failure” chain.
14 15 16 17 18 19 20 21 |
# File 'lib/proutils/rtar/rtar.rb', line 14 def status( *status ) if status.empty? return @status else @status = status self end end |
#status? ⇒ Boolean
Check status.
25 26 27 28 29 |
# File 'lib/proutils/rtar/rtar.rb', line 25 def status? return unless @status return false if @status.empty? return true end |