lib/formalizer/form.rb
# Validates initializer.
# Raises errors if cannot initialize form from path or raw html
# * +id+ - Unique textal identifier for the form
# * +path_or_html+ - Either a path to a template html file, or a raw html
Validates initializer.
Raises errors if cannot initialize form from path or raw html
+id+ - Unique textal identifier for the form
+path_or_html+ - Either a path to a template html file, or a raw html
Validates initializer . Raises errors if cannot initialize form from path or raw html + id + - Unique textal identifier for the form + path_or_html + - Either a path to a template html file or a raw html
def validate id, path_or_html
      unless (id.is_a?String) || (id.is_a?Symbol)
        raise WrongValueClass, 'form id should be a String or Symbol'
      end
      raise WrongValueClass, 'path/html should be a String' unless path_or_html.is_a?String
    end
def validate id , path_or_html unless ( id . is_a? String ) || ( id . is_a? Symbol ) raise WrongValueClass , 'form id should be a String or Symbol' end raise WrongValueClass , 'path/html should be a String' unless path_or_html . is_a? String end
Validates initializer.
Validates initializer .
id
<not_specific>
path_or_html
<not_specific>