lib/st_html/ruing/abstract_validator.rb
# if not passing a block thi is a useless function
if not passing a block thi is a useless function
if not passing a block thi is a useless function
def validate x
        if block_given?
            yield AbstractValidator, self, x
               the constant AbstractValidator serves as context
        else
            if @options[:proc] && @options[:proc].is_a?(Proc)
                @options[:proc].call AbstractValidator, self, x
                     il primo valore e' il contesto, serve pe le costanti
            else
                @response= CORRECT
            end
        end
    end
def validate x if block_given? yield AbstractValidator , self , x else if @options [ :proc ] && @options [ :proc ] . is_a? ( Proc ) @options [ :proc ] . call AbstractValidator , self , x else @response = CORRECT end end end
if not passing a block thi is a useless function
if not passing a block thi is a useless function
# il the yield using the self one can setup a message # # the constant AbstractValidator serves as context # #  # il primo valore e' il contesto, serve pe le costanti
x
<not_specific>