Class: HtmlAide::Validator
- Inherits:
-
Object
- Object
- HtmlAide::Validator
- Defined in:
- lib/html_aide/validator.rb
Class Method Summary collapse
-
.validate(markup, format = :snippet) ⇒ Object
validate markup and return the instance that validated the markup based on format possible future formats [:snippet, :document].
Class Method Details
.validate(markup, format = :snippet) ⇒ Object
validate markup and return the instance that validated the markup based on format possible future formats [:snippet, :document]
5 6 7 |
# File 'lib/html_aide/validator.rb', line 5 def self.validate(markup, format = :snippet) @validator = HtmlAide.const_get("#{format.to_s.capitalize}Validator").new(markup) end |