Class: PageEz::Configuration
- Inherits:
-
Object
- Object
- PageEz::Configuration
- Defined in:
- lib/page_ez/configuration.rb
Constant Summary collapse
- VALID_MISMATCH_BEHAVIORS =
[:warn, :raise, nil].freeze
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#on_matcher_collision ⇒ Object
Returns the value of attribute on_matcher_collision.
-
#on_pluralization_mismatch ⇒ Object
Returns the value of attribute on_pluralization_mismatch.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #reset ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 |
# File 'lib/page_ez/configuration.rb', line 7 def initialize reset end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
4 5 6 |
# File 'lib/page_ez/configuration.rb', line 4 def logger @logger end |
#on_matcher_collision ⇒ Object
Returns the value of attribute on_matcher_collision.
5 6 7 |
# File 'lib/page_ez/configuration.rb', line 5 def on_matcher_collision @on_matcher_collision end |
#on_pluralization_mismatch ⇒ Object
Returns the value of attribute on_pluralization_mismatch.
5 6 7 |
# File 'lib/page_ez/configuration.rb', line 5 def on_pluralization_mismatch @on_pluralization_mismatch end |
Instance Method Details
#reset ⇒ Object
27 28 29 30 31 |
# File 'lib/page_ez/configuration.rb', line 27 def reset self.logger = NullLogger.new self.on_pluralization_mismatch = nil self.on_matcher_collision = :raise end |