Class: Nanoc::Int::Memoization::Wrapper Private
- Inherits:
-
Object
- Object
- Nanoc::Int::Memoization::Wrapper
- Defined in:
- lib/nanoc/base/memoization.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #ref ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(ref) ⇒ Wrapper
constructor
private
A new instance of Wrapper.
- #inspect ⇒ Object private
Constructor Details
#initialize(ref) ⇒ Wrapper
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Wrapper.
13 14 15 |
# File 'lib/nanoc/base/memoization.rb', line 13 def initialize(ref) @ref = ref end |
Instance Attribute Details
#ref ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/nanoc/base/memoization.rb', line 11 def ref @ref end |
Instance Method Details
#inspect ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 20 21 22 23 24 |
# File 'lib/nanoc/base/memoization.rb', line 17 def inspect obj = @ref.object if obj obj.inspect else '<garbage collected>' end end |