Class: Vizier::NullPresenter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/vizier/null_presenter.rb

Overview

Simple pass-through presenter that serves as a default.

We may want to use something other than ‘.new` so this can actually return the object rather than a new instance of itself.

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ NullPresenter

Returns a new instance of NullPresenter.



10
11
12
# File 'lib/vizier/null_presenter.rb', line 10

def initialize(object, *)
  __setobj__ object
end