clear

clear()
Instance Public methods
def validate(cmd = Proc.new, args = nil)
  if cmd.kind_of?(ValidateCmd)
    configure('validate', cmd)
  elsif args
    configure('validate', [cmd, args])
  else
    configure('validate', cmd)
  end
end

def invalid(cmd = Proc.new, args = nil)
  if cmd.kind_of?(ValidateCmd)
    configure('invalid', cmd)
  elsif args
    configure('invalid', [cmd, args])
  else
    configure('invalid', cmd)
  end
end

####################################

doc_ruby_on_rails
2015-05-24 14:34:20
Comments
Leave a Comment

Please login to continue.