Class: Pageflow::Configuration::ConfigView Private
- Inherits:
-
Object
- Object
- Pageflow::Configuration::ConfigView
- Defined in:
- lib/pageflow/configuration.rb
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.
Instance Method Summary collapse
-
#initialize(config, entry_type) ⇒ ConfigView
constructor
private
A new instance of ConfigView.
- #method_missing(method) ⇒ Object private
- #respond_to_missing?(method_name, include_private = false) ⇒ Boolean private
Constructor Details
#initialize(config, entry_type) ⇒ ConfigView
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 ConfigView.
701 702 703 704 |
# File 'lib/pageflow/configuration.rb', line 701 def initialize(config, entry_type) @config = config @entry_type_config = config.get_entry_type_config(entry_type) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method) ⇒ 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.
706 707 708 709 710 711 712 713 714 |
# File 'lib/pageflow/configuration.rb', line 706 def method_missing(method, *) if @config.respond_to?(method) @config.send(method, *) elsif @entry_type_config.respond_to?(method) @entry_type_config.send(method, *) else super end end |
Instance Method Details
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
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.
716 717 718 719 720 |
# File 'lib/pageflow/configuration.rb', line 716 def respond_to_missing?(method_name, include_private = false) @config.respond_to?(method_name) || @entry_type_config.respond_to?(method_name) || super end |