Sha256: 67a0215ac364b13e3fb5c6cc75a8bac2d4c47be4124e08eccee184fe46719fc8

Contents?: true

Size: 182 Bytes

Versions: 24

Compression:

Stored size: 182 Bytes

Contents

class Maid::Rule < Struct.new(:description, :instructions, :maid)
  # Follow the instructions of the rule.
  def follow(*args)
    maid.instance_exec(*args, &instructions)
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
maid-0.6.0.alpha.6 lib/maid/rule.rb
maid-0.6.0.alpha.5 lib/maid/rule.rb
maid-0.6.0.alpha.4 lib/maid/rule.rb
maid-0.6.0.alpha.3 lib/maid/rule.rb