Class: Taxonomite::Configuration

Inherits:
Object
  • Object
show all
Extended by:
Configurable
Defined in:
lib/taxonomite/taxonomite_configuration.rb

Overview

The configuration class for Taxonomite gem. All classes which are configured via this mechanism should extend Taxonomite::Configured (below).

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Configurable

config, configure, reset

Instance Attribute Details

#default_taxonomy_require_bothObject

Returns the value of attribute default_taxonomy_require_both.



45
46
47
# File 'lib/taxonomite/taxonomite_configuration.rb', line 45

def default_taxonomy_require_both
  @default_taxonomy_require_both
end

#use_tree_modelObject

future versions may extend to using different tree models

  • for now uses a custom tree model (:self)



44
45
46
# File 'lib/taxonomite/taxonomite_configuration.rb', line 44

def use_tree_model
  @use_tree_model
end

Class Method Details

.create_configurationObject



38
39
40
# File 'lib/taxonomite/taxonomite_configuration.rb', line 38

def self.create_configuration
  Taxonomite::Configuration.new
end