Class: Nanoc::View
- Inherits:
-
Object
- Object
- Nanoc::View
- Defined in:
- lib/nanoc/base/views/view.rb
Direct Known Subclasses
ConfigView, IdentifiableCollectionView, ItemRepCollectionView, ItemRepView, ItemWithoutRepsView, LayoutView
Instance Method Summary collapse
- #_context ⇒ Object private
-
#frozen? ⇒ Boolean
True if the wrapped object is frozen; false otherwise.
-
#initialize(context) ⇒ View
constructor
private
A new instance of View.
- #inspect ⇒ Object
- #unwrap ⇒ Object private
Constructor Details
#initialize(context) ⇒ View
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 View.
4 5 6 |
# File 'lib/nanoc/base/views/view.rb', line 4 def initialize(context) @context = context end |
Instance Method Details
#_context ⇒ 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.
9 10 11 |
# File 'lib/nanoc/base/views/view.rb', line 9 def _context @context end |
#frozen? ⇒ Boolean
True if the wrapped object is frozen; false otherwise.
23 24 25 |
# File 'lib/nanoc/base/views/view.rb', line 23 def frozen? unwrap.frozen? end |
#inspect ⇒ Object
27 28 29 |
# File 'lib/nanoc/base/views/view.rb', line 27 def inspect "<#{self.class}>" end |
#unwrap ⇒ 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.
14 15 16 |
# File 'lib/nanoc/base/views/view.rb', line 14 def unwrap raise NotImplementedError end |