Module: Nyanko::Config

Defined in:
lib/nyanko/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.auto_reloadObject

Returns the value of attribute auto_reload.



4
5
6
# File 'lib/nyanko/config.rb', line 4

def auto_reload
  @auto_reload
end

.backtrace_limitObject

Returns the value of attribute backtrace_limit.



4
5
6
# File 'lib/nyanko/config.rb', line 4

def backtrace_limit
  @backtrace_limit
end

.cache_unitsObject

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_classObject

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_loggerObject

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_nameObject

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_errorObject

Returns the value of attribute raise_error.



4
5
6
# File 'lib/nyanko/config.rb', line 4

def raise_error
  @raise_error
end

.resolverObject

Returns the value of attribute resolver.



4
5
6
# File 'lib/nyanko/config.rb', line 4

def resolver
  @resolver
end

.units_directory_pathObject

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

.resetObject



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