Class: RubySpriter::CellCleanupConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_spriter/cell_cleanup_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @threshold = options[:cell_cleanup_threshold] || 15.0
  @parallel = options.fetch(:cell_cleanup_parallel, true)
  @skip_empty = options.fetch(:cell_cleanup_skip_empty, true)

  validate!
end

Instance Attribute Details

#parallelObject

Returns the value of attribute parallel.



3
4
5
# File 'lib/ruby_spriter/cell_cleanup_config.rb', line 3

def parallel
  @parallel
end

#skip_emptyObject

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

#thresholdObject

Returns the value of attribute threshold.



3
4
5
# File 'lib/ruby_spriter/cell_cleanup_config.rb', line 3

def threshold
  @threshold
end