module Sheet2hash::Options
Sheet2hash::Options
processes the options of Sheet2hash
. @author Wei-Ming Wu
Public Instance Methods
process_options(opts)
click to toggle source
Regulates options of Sheet2hash
.
# File lib/sheet2hash/options.rb, line 6 def process_options opts regulate_options opts opts end
Private Instance Methods
regulate_options(opts)
click to toggle source
# File lib/sheet2hash/options.rb, line 13 def regulate_options opts opts[:keep_row] = Array(opts[:keep_row]) if opts[:keep_row] opts[:skip_row] = Array(opts[:skip_row]) if opts[:skip_row] opts[:keep_col] = Array(opts[:keep_col]) if opts[:keep_col] opts[:skip_col] = Array(opts[:skip_col]) if opts[:skip_col] end