Module: DrbPool::InUse
- Defined in:
- lib/drbman/drb_pool.rb
Overview
Adds an in_use attribute
Instance Method Summary collapse
-
#in_use=(flag) ⇒ Boolean
set the in_use flag.
-
#in_use? ⇒ Boolean
get the in_use flag.
Instance Method Details
#in_use=(flag) ⇒ Boolean
set the in_use flag
122 123 124 |
# File 'lib/drbman/drb_pool.rb', line 122 def in_use=(flag) @in_use = (flag ? true : false) end |
#in_use? ⇒ Boolean
get the in_use flag
128 129 130 |
# File 'lib/drbman/drb_pool.rb', line 128 def in_use? @in_use end |