Class: Hanami::Views::NullView Private

Inherits:
Object
  • Object
show all
Defined in:
lib/hanami/views/null_view.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.

Null Object pattern for views

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#render(_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.

Since:

  • 0.1.0



10
11
12
# File 'lib/hanami/views/null_view.rb', line 10

def render(_context)
  nil
end