Class: Slugable::Configuration
- Inherits:
-
Struct
- Object
- Struct
- Slugable::Configuration
- Defined in:
- lib/slugable/has_slug.rb
Instance Attribute Summary collapse
-
#formatter ⇒ Object
Returns the value of attribute formatter.
-
#tree_cache_storage ⇒ Object
Returns the value of attribute tree_cache_storage.
Instance Method Summary collapse
-
#initialize(params) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(params) ⇒ Configuration
Returns a new instance of Configuration.
3 4 5 |
# File 'lib/slugable/has_slug.rb', line 3 def initialize(params) params.each { |key, value| public_send(:"#{key}=", value) } end |
Instance Attribute Details
#formatter ⇒ Object
Returns the value of attribute formatter
2 3 4 |
# File 'lib/slugable/has_slug.rb', line 2 def formatter @formatter end |
#tree_cache_storage ⇒ Object
Returns the value of attribute tree_cache_storage
2 3 4 |
# File 'lib/slugable/has_slug.rb', line 2 def tree_cache_storage @tree_cache_storage end |