Class: Sfn::Lint::RuleSet::Creator::RuleSet
- Inherits:
-
Sfn::Lint::RuleSet::Creator
- Object
- Sfn::Lint::RuleSet::Creator
- Sfn::Lint::RuleSet::Creator::RuleSet
- Defined in:
- lib/sfn/lint/rule_set.rb
Instance Attribute Summary
Attributes inherited from Sfn::Lint::RuleSet::Creator
Instance Method Summary collapse
Methods inherited from Sfn::Lint::RuleSet::Creator
Constructor Details
This class inherits a constructor from Sfn::Lint::RuleSet::Creator
Instance Method Details
#rule(name, &block) ⇒ Object
20 21 22 23 24 |
# File 'lib/sfn/lint/rule_set.rb', line 20 def rule(name, &block) r = Rule.new(provider) r.instance_exec(&block) items << Sfn::Lint::Rule.new(name, r.items, r., provider) end |