class Vizier::DefaultPresenterConfig
A base implementation of a default presenter configuration, used by by PresenterFactory
to provide a fall-through for unmapped types.
This uses `NullPresenter` and `ReadOnlyPolicy` to have generic, fully delegating presenters with a `show?` permission passing unconditionally.
Attributes
config_type[R]
Public Class Methods
new(config_type)
click to toggle source
# File lib/vizier/default_presenter_config.rb, line 12 def initialize(config_type) @config_type = config_type end
Public Instance Methods
for(type)
click to toggle source
# File lib/vizier/default_presenter_config.rb, line 16 def for(type) config_type.new(type, NullPresenter, ReadOnlyPolicy) end