Class: Maid::Rule
- Inherits:
-
Struct
- Object
- Struct
- Maid::Rule
- Defined in:
- lib/maid/rule.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#instructions ⇒ Object
Returns the value of attribute instructions.
Instance Method Summary collapse
-
#follow ⇒ Object
Follow the instructions of the rule.
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
1 2 3 |
# File 'lib/maid/rule.rb', line 1 def description @description end |
#instructions ⇒ Object
Returns the value of attribute instructions
1 2 3 |
# File 'lib/maid/rule.rb', line 1 def instructions @instructions end |
Instance Method Details
#follow ⇒ Object
Follow the instructions of the rule.
3 4 5 |
# File 'lib/maid/rule.rb', line 3 def follow instructions.call end |