Class: Sfn::Lint::RuleSet::Creator::Rule
Instance Attribute Summary
#items, #provider
Instance Method Summary
collapse
#initialize
Instance Method Details
#definition(expr, evaluator = nil, &block) ⇒ Object
26
27
28
|
# File 'lib/sfn/lint/rule_set.rb', line 26
def definition(expr, evaluator = nil, &block)
items << Sfn::Lint::Definition.new(expr, provider, evaluator, &block)
end
|
#fail_message(val = nil) ⇒ Object
30
31
32
33
34
35
|
# File 'lib/sfn/lint/rule_set.rb', line 30
def fail_message(val = nil)
unless val.nil?
@fail_message = val
end
@fail_message
end
|