Class: RubySpriter::CellCleanupConfig
- Inherits:
-
Object
- Object
- RubySpriter::CellCleanupConfig
- Defined in:
- lib/ruby_spriter/cell_cleanup_config.rb
Instance Attribute Summary collapse
-
#parallel ⇒ Object
Returns the value of attribute parallel.
-
#skip_empty ⇒ Object
Returns the value of attribute skip_empty.
-
#threshold ⇒ Object
Returns the value of attribute threshold.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ CellCleanupConfig
constructor
A new instance of CellCleanupConfig.
Constructor Details
#initialize(options = {}) ⇒ CellCleanupConfig
Returns a new instance of CellCleanupConfig.
5 6 7 8 9 10 11 |
# File 'lib/ruby_spriter/cell_cleanup_config.rb', line 5 def initialize( = {}) @threshold = [:cell_cleanup_threshold] || 15.0 @parallel = .fetch(:cell_cleanup_parallel, true) @skip_empty = .fetch(:cell_cleanup_skip_empty, true) validate! end |
Instance Attribute Details
#parallel ⇒ Object
Returns the value of attribute parallel.
3 4 5 |
# File 'lib/ruby_spriter/cell_cleanup_config.rb', line 3 def parallel @parallel end |
#skip_empty ⇒ Object
Returns the value of attribute skip_empty.
3 4 5 |
# File 'lib/ruby_spriter/cell_cleanup_config.rb', line 3 def skip_empty @skip_empty end |
#threshold ⇒ Object
Returns the value of attribute threshold.
3 4 5 |
# File 'lib/ruby_spriter/cell_cleanup_config.rb', line 3 def threshold @threshold end |