Class: Rtml::Configuration
- Inherits:
-
Object
- Object
- Rtml::Configuration
- Defined in:
- lib/rtml/configuration.rb
Instance Attribute Summary collapse
-
#log_tml ⇒ Object
Returns the value of attribute log_tml.
-
#rtml_helper_paths ⇒ Object
Returns the value of attribute rtml_helper_paths.
-
#widget_logging_enabled ⇒ Object
Returns the value of attribute widget_logging_enabled.
-
#widget_paths ⇒ Object
Returns the value of attribute widget_paths.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
-
#validate! ⇒ Object
does some basic manipulation to options in order to guesstimate the correct values for erroneous configurations.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 |
# File 'lib/rtml/configuration.rb', line 8 def initialize self. = self.rtml_helper_paths = default_rtml_helper_paths self. = self.log_tml = default_log_tml end |
Instance Attribute Details
#log_tml ⇒ Object
Returns the value of attribute log_tml.
6 7 8 |
# File 'lib/rtml/configuration.rb', line 6 def log_tml @log_tml end |
#rtml_helper_paths ⇒ Object
Returns the value of attribute rtml_helper_paths.
4 5 6 |
# File 'lib/rtml/configuration.rb', line 4 def rtml_helper_paths @rtml_helper_paths end |
#widget_logging_enabled ⇒ Object
Returns the value of attribute widget_logging_enabled.
5 6 7 |
# File 'lib/rtml/configuration.rb', line 5 def @widget_logging_enabled end |
#widget_paths ⇒ Object
Returns the value of attribute widget_paths.
3 4 5 |
# File 'lib/rtml/configuration.rb', line 3 def @widget_paths end |
Instance Method Details
#validate! ⇒ Object
does some basic manipulation to options in order to guesstimate the correct values for erroneous configurations
16 17 18 19 20 21 |
# File 'lib/rtml/configuration.rb', line 16 def validate! .flatten! .uniq! rtml_helper_paths.flatten! rtml_helper_paths.uniq! end |