Class: Bashtetikn::HtmlValidatorFromW3C
- Inherits:
-
Object
- Object
- Bashtetikn::HtmlValidatorFromW3C
- Defined in:
- lib/bashtetikn/html_validator_from_w3c.rb
Overview
Uses validator provided by W3C to validate HTML
Instance Method Summary collapse
-
#validate_text(text_to_validate) ⇒ Object
Validates html text.
- #validate_uri(uri) ⇒ Object
-
#validator ⇒ Object
The validator used to process the page.
Instance Method Details
#validate_text(text_to_validate) ⇒ Object
Validates html text
9 10 11 |
# File 'lib/bashtetikn/html_validator_from_w3c.rb', line 9 def validate_text(text_to_validate) validator.validate_text(text_to_validate) end |
#validate_uri(uri) ⇒ Object
13 14 15 |
# File 'lib/bashtetikn/html_validator_from_w3c.rb', line 13 def validate_uri(uri) validator.validate_uri(uri) end |
#validator ⇒ Object
The validator used to process the page
18 19 20 |
# File 'lib/bashtetikn/html_validator_from_w3c.rb', line 18 def validator W3CValidators::NuValidator.new end |