Module: Shoes::Swt::DisposedProtection

Included in:
Color, Progress
Defined in:
shoes-swt/lib/shoes/swt/disposed_protection.rb

Defined Under Namespace

Classes: NullObject

Instance Method Summary collapse

Instance Method Details

#realObject


6
7
8
9
# File 'shoes-swt/lib/shoes/swt/disposed_protection.rb', line 6

def real
  return NullObject.new(@real) if @real.disposed?
  @real
end