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.10.0 lib/maid/rule.rb
maid-0.10.0.pre.alpha.3 lib/maid/rule.rb
maid-0.10.0.pre.alpha.2 lib/maid/rule.rb
maid-0.10.0.pre.alpha.1 lib/maid/rule.rb
maid-0.9.0.alpha.2 lib/maid/rule.rb
maid-0.9.0.alpha.1 lib/maid/rule.rb
maid-0.8.0.alpha.4 lib/maid/rule.rb
maid-0.8.0.alpha.3 lib/maid/rule.rb
maid-0.8.0.alpha.2 lib/maid/rule.rb
maid-0.8.0.alpha.1 lib/maid/rule.rb
maid-0.7.0 lib/maid/rule.rb
maid-0.7.0.beta.1 lib/maid/rule.rb
maid-0.7.0.alpha.4 lib/maid/rule.rb
maid-0.7.0.alpha.2 lib/maid/rule.rb
maid-0.7.0.alpha.1 lib/maid/rule.rb
maid-0.6.1 lib/maid/rule.rb
maid-0.6.1.alpha.1 lib/maid/rule.rb
maid-0.6.0 lib/maid/rule.rb
maid-0.6.0.beta.2 lib/maid/rule.rb
maid-0.6.0.beta.1 lib/maid/rule.rb