Class: Marshal::BlackHole
- Inherits:
- BasicObject
- Defined in:
- lib/utilrb/marshal/load_with_missing_constants.rb,
lib/utilrb/marshal/load_with_missing_constants.rb
Instance Attribute Summary collapse
-
#__content__ ⇒ Object
readonly
Returns the value of attribute __content__.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ BlackHole
constructor
A new instance of BlackHole.
- #method_missing(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ BlackHole
Returns a new instance of BlackHole.
12 13 |
# File 'lib/utilrb/marshal/load_with_missing_constants.rb', line 12 def initialize(*args) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args) ⇒ Object
16 17 |
# File 'lib/utilrb/marshal/load_with_missing_constants.rb', line 16 def method_missing(*args) end |
Instance Attribute Details
#__content__ ⇒ Object (readonly)
Returns the value of attribute __content__.
15 16 17 |
# File 'lib/utilrb/marshal/load_with_missing_constants.rb', line 15 def __content__ @__content__ end |
Class Method Details
._load(*args) ⇒ Object
18 19 20 21 |
# File 'lib/utilrb/marshal/load_with_missing_constants.rb', line 18 def self._load(*args) hole = BlackHole.new hole.instance_variable_set(:@__content__, args) end |
.method_missing(*args) ⇒ Object
23 24 |
# File 'lib/utilrb/marshal/load_with_missing_constants.rb', line 23 def self.method_missing(*args) end |