Module: Pageflow::EntryTypeConfiguration

Defined in:
lib/pageflow/entry_type_configuration.rb

Overview

Include in entry type specific configuration classes.

Since:

  • 15.1

Defined Under Namespace

Classes: FeaturesDelegator

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#featuresObject (readonly)

Since:

  • 15.1



12
13
14
# File 'lib/pageflow/entry_type_configuration.rb', line 12

def features
  @features
end

Instance Method Details

#initialize(config, entry_type) ⇒ 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:

  • 15.1



7
8
9
10
# File 'lib/pageflow/entry_type_configuration.rb', line 7

def initialize(config, entry_type)
  @config = config
  @features = FeaturesDelegator.new(config, entry_type)
end

#plugin(plugin) ⇒ Object

Since:

  • 15.1



24
25
26
# File 'lib/pageflow/entry_type_configuration.rb', line 24

def plugin(plugin)
  plugin.configure(self)
end