Class: Rule

Inherits:
Object
  • Object
show all
Defined in:
lib/technologist/rules/rule.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#frameworkObject

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

Returns:

  • (Boolean)


10
11
12
# File 'lib/technologist/rules/rule.rb', line 10

def matches?(repository)
  false
end