Class: Shoes::Swt::DisposedProtection::NullObject
- Inherits:
- BasicObject
- Defined in:
- shoes-swt/lib/shoes/swt/disposed_protection.rb
Instance Method Summary collapse
-
#initialize(real) ⇒ NullObject
constructor
A new instance of NullObject.
- #method_missing(_method, *_args) ⇒ Object
- #respond_to?(method) ⇒ Boolean
Constructor Details
#initialize(real) ⇒ NullObject
Returns a new instance of NullObject.
12 13 14 |
# File 'shoes-swt/lib/shoes/swt/disposed_protection.rb', line 12 def initialize(real) @real = real end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(_method, *_args) ⇒ Object
20 21 |
# File 'shoes-swt/lib/shoes/swt/disposed_protection.rb', line 20 def method_missing(_method, *_args) end |
Instance Method Details
#respond_to?(method) ⇒ Boolean
16 17 18 |
# File 'shoes-swt/lib/shoes/swt/disposed_protection.rb', line 16 def respond_to?(method) @real.respond_to? method end |