Class: Maid::Rule

Inherits:
Struct
  • Object
show all
Defined in:
lib/maid/rule.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



1
2
3
# File 'lib/maid/rule.rb', line 1

def description
  @description
end

#instructionsObject

Returns the value of attribute instructions

Returns:

  • (Object)

    the current value of instructions



1
2
3
# File 'lib/maid/rule.rb', line 1

def instructions
  @instructions
end

Instance Method Details

#followObject

Follow the instructions of the rule.



3
4
5
# File 'lib/maid/rule.rb', line 3

def follow
  instructions.call
end