Class: Coradoc::AsciiDoc::Model::Video::AttributeList
- Inherits:
-
AttributeList
- Object
- Lutaml::Model::Serializable
- Base
- AttributeList
- Coradoc::AsciiDoc::Model::Video::AttributeList
- Extended by:
- AttributeList::Matchers
- Defined in:
- lib/coradoc/asciidoc/model/video/attribute_list.rb
Instance Attribute Summary
Attributes inherited from AttributeList
#named, #positional, #rejected_named, #rejected_positional
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from AttributeList
#[], #add_named, #add_positional, #empty?, #fetch, #to_adoc, #validate, #validate_named, #validate_positional
Methods included from AttributeList::Matchers
Methods inherited from Base
#block_level?, #inline?, #serialize_content, #simplify_block_content, #to_adoc, #to_h, visit, #visit
Instance Method Details
#named_validators ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/coradoc/asciidoc/model/video/attribute_list.rb', line 17 def named_validators { title: String, poster: String, width: Integer, height: Integer, start: Integer, end: Integer, theme: one('dark', 'light'), lang: /[a-z]{2,3}(?:-[A-Z]{2})?/, list: String, playlist: String, options: many( 'autoplay', 'loop', 'modest', 'nocontrols', 'nofullscreen', 'muted' ) } end |
#positional_validators ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/coradoc/asciidoc/model/video/attribute_list.rb', line 9 def positional_validators [ [:alt, String], [:width, Integer], [:height, Integer] ] end |