Class: Dressmaker::Configuration::Rule

Inherits:
Object
  • Object
show all
Defined in:
lib/dressmaker/configuration/rule.rb

Direct Known Subclasses

DirectoryRule, FileRule

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



5
6
7
# File 'lib/dressmaker/configuration/rule.rb', line 5

def description
  @description
end

#informedObject

Returns the value of attribute informed.



5
6
7
# File 'lib/dressmaker/configuration/rule.rb', line 5

def informed
  @informed
end

Instance Method Details

#informObject



7
8
9
10
# File 'lib/dressmaker/configuration/rule.rb', line 7

def inform
  Dressmaker.inform(self, description) if description && !informed
  self.informed = true
end

#informed?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/dressmaker/configuration/rule.rb', line 12

def informed?
  informed
end