Class: Glark::CriteriaOpts
Instance Method Summary
collapse
Methods inherited from Criteria
#add, #find_by_class, #get, #match?, #skipped?
Constructor Details
Returns a new instance of CriteriaOpts.
9
10
11
12
|
# File 'lib/glark/input/filter/criteria_opts.rb', line 9
def initialize
super
@options = opt_classes.collect { |optcls| optcls.new self }
end
|
Instance Method Details
#add_as_options(optdata) ⇒ Object
34
35
36
37
38
|
# File 'lib/glark/input/filter/criteria_opts.rb', line 34
def add_as_options optdata
@options.each do |opt|
opt.add_to_option_data optdata
end
end
|
#config_fields ⇒ Object
18
19
20
|
# File 'lib/glark/input/filter/criteria_opts.rb', line 18
def config_fields
Hash.new
end
|
#dump_fields ⇒ Object
22
23
24
|
# File 'lib/glark/input/filter/criteria_opts.rb', line 22
def dump_fields
config_fields
end
|
#opt_classes ⇒ Object
14
15
16
|
# File 'lib/glark/input/filter/criteria_opts.rb', line 14
def opt_classes
Array.new
end
|
#update_fields(rcfields) ⇒ Object
26
27
28
29
30
31
32
|
# File 'lib/glark/input/filter/criteria_opts.rb', line 26
def update_fields rcfields
rcfields.each do |name, values|
@options.each do |opt|
opt.match_rc name, values
end
end
end
|