Class: RNV::PreProcessor
- Inherits:
-
Object
- Object
- RNV::PreProcessor
- Defined in:
- lib/rnv/pre_processor.rb
Overview
Object to modify data before validation (eg: HTML5 data-* attributes)
Instance Method Summary collapse
-
#attributes(attrs) ⇒ Array<Array<String>>
replace attributes before validate.
-
#tag(tag) ⇒ String
replace tag name before validate.
-
#text(txt) ⇒ String
replace content text before validate.
Instance Method Details
#attributes(attrs) ⇒ Array<Array<String>>
replace attributes before validate
7 8 9 |
# File 'lib/rnv/pre_processor.rb', line 7 def attributes(attrs) attrs end |
#tag(tag) ⇒ String
replace tag name before validate
14 15 16 |
# File 'lib/rnv/pre_processor.rb', line 14 def tag(tag) tag end |
#text(txt) ⇒ String
replace content text before validate
21 22 23 |
# File 'lib/rnv/pre_processor.rb', line 21 def text(txt) txt end |