Sha256: 14ec7c0683a6de9eb12966caaa12794272214157678b632520c43f8d69a3ad2d
Contents?: true
Size: 449 Bytes
Versions: 6
Compression:
Stored size: 449 Bytes
Contents
module Rulz class Definer def initialize(klass) @klass = klass end def condition(name, &block) Rulz::Condition.new(name, @klass, block) end def action(name, &block) Rulz::Action.new(name, @klass, block) end def rule(&block) Rulz::Rule.new(@klass, block) end def attribute(attr, &block) Rulz::Attribute::Block.new(attr, @klass, &block) end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
rulz-1.0.5 | lib/rulz/definer.rb |
rulz-1.0.4 | lib/rulz/definer.rb |
rulz-1.0.3 | lib/rulz/definer.rb |
rulz-1.0.2 | lib/rulz/definer.rb |
rulz-1.0.1 | lib/rulz/definer.rb |
rulz-1.0.0 | lib/rulz/definer.rb |