Module: Nyanko::Config
- Defined in:
- lib/nyanko/config.rb
Class Attribute Summary collapse
-
.auto_reload ⇒ Object
Returns the value of attribute auto_reload.
-
.backtrace_limit ⇒ Object
Returns the value of attribute backtrace_limit.
-
.cache_units ⇒ Object
Returns the value of attribute cache_units.
-
.compatible_css_class ⇒ Object
Returns the value of attribute compatible_css_class.
-
.enable_logger ⇒ Object
Returns the value of attribute enable_logger.
-
.proxy_method_name ⇒ Object
Returns the value of attribute proxy_method_name.
-
.raise_error ⇒ Object
Returns the value of attribute raise_error.
-
.resolver ⇒ Object
Returns the value of attribute resolver.
-
.units_directory_path ⇒ Object
Returns the value of attribute units_directory_path.
Class Method Summary collapse
Class Attribute Details
.auto_reload ⇒ Object
Returns the value of attribute auto_reload.
4 5 6 |
# File 'lib/nyanko/config.rb', line 4 def auto_reload @auto_reload end |
.backtrace_limit ⇒ Object
Returns the value of attribute backtrace_limit.
4 5 6 |
# File 'lib/nyanko/config.rb', line 4 def backtrace_limit @backtrace_limit end |
.cache_units ⇒ Object
Returns the value of attribute cache_units.
4 5 6 |
# File 'lib/nyanko/config.rb', line 4 def cache_units @cache_units end |
.compatible_css_class ⇒ Object
Returns the value of attribute compatible_css_class.
4 5 6 |
# File 'lib/nyanko/config.rb', line 4 def compatible_css_class @compatible_css_class end |
.enable_logger ⇒ Object
Returns the value of attribute enable_logger.
4 5 6 |
# File 'lib/nyanko/config.rb', line 4 def enable_logger @enable_logger end |
.proxy_method_name ⇒ Object
Returns the value of attribute proxy_method_name.
4 5 6 |
# File 'lib/nyanko/config.rb', line 4 def proxy_method_name @proxy_method_name end |
.raise_error ⇒ Object
Returns the value of attribute raise_error.
4 5 6 |
# File 'lib/nyanko/config.rb', line 4 def raise_error @raise_error end |
.resolver ⇒ Object
Returns the value of attribute resolver.
4 5 6 |
# File 'lib/nyanko/config.rb', line 4 def resolver @resolver end |
.units_directory_path ⇒ Object
Returns the value of attribute units_directory_path.
4 5 6 |
# File 'lib/nyanko/config.rb', line 4 def units_directory_path @units_directory_path end |
Class Method Details
.reset ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/nyanko/config.rb', line 16 def reset self.auto_reload = Rails.env.development? || Rails.env.test? self.backtrace_limit = 10 self.cache_units = false self.compatible_css_class = false self.enable_logger = true self.proxy_method_name = :unit self.raise_error = Rails.env.development? self.resolver = ActionView::OptimizedFileSystemResolver self.units_directory_path = "app/units" end |