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, *args) ⇒ 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.
578 579 580 581 |
# File 'lib/pageflow/configuration.rb', line 578 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, *args) ⇒ 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.
583 584 585 586 587 588 589 590 591 |
# File 'lib/pageflow/configuration.rb', line 583 def method_missing(method, *args) if @config.respond_to?(method) @config.send(method, *args) elsif @entry_type_config.respond_to?(method) @entry_type_config.send(method, *args) 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.
593 594 595 596 597 |
# File 'lib/pageflow/configuration.rb', line 593 def respond_to_missing?(method_name, include_private = false) @config.respond_to?(method_name) || @entry_type_config.respond_to?(method_name) || super end |