bugfix: only call rule blocks if they are given

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-06-19 16:32:11 +02:00
parent 6f4a1fc092
commit aebed6cb55

View file

@ -9,7 +9,7 @@ class VulcanoBaseRule
@title = nil
@desc = nil
self.instance_eval(&block)
self.instance_eval(&block) if block_given?
end
def id(v = nil)