Class: Rule
- Inherits:
-
Object
- Object
- Rule
- Defined in:
- lib/technologist/rules/rule.rb
Direct Known Subclasses
DirectoryPresenceRule, FileContentRule, FilePresenceRule, FileXmlContentRule
Instance Attribute Summary collapse
-
#framework ⇒ Object
Returns the value of attribute framework.
Instance Method Summary collapse
-
#initialize(framework, attributes = {}) ⇒ Rule
constructor
A new instance of Rule.
- #matches?(repository) ⇒ Boolean
Constructor Details
#initialize(framework, attributes = {}) ⇒ Rule
Returns a new instance of Rule.
4 5 6 7 8 |
# File 'lib/technologist/rules/rule.rb', line 4 def initialize(framework, attributes = {}) self.framework = framework attributes.each { |name, value| self.send(:"#{name}=", value) } end |
Instance Attribute Details
#framework ⇒ Object
Returns the value of attribute framework.
2 3 4 |
# File 'lib/technologist/rules/rule.rb', line 2 def framework @framework end |
Instance Method Details
#matches?(repository) ⇒ Boolean
10 11 12 |
# File 'lib/technologist/rules/rule.rb', line 10 def matches?(repository) false end |