Module: Asciidoctor::Compliance
- Defined in:
- lib/asciidoctor.rb
Overview
Flags to control compliance with the behavior of AsciiDoc
Class Attribute Summary collapse
- .keys ⇒ Object readonly
Class Method Summary collapse
-
.define(key, value) ⇒ Object
Defines a new compliance key and assigns an initial value.
Class Attribute Details
.keys ⇒ Object (readonly)
109 110 111 |
# File 'lib/asciidoctor.rb', line 109 def keys @keys end |
Class Method Details
.define(key, value) ⇒ Object
Defines a new compliance key and assigns an initial value.
112 113 114 115 116 117 |
# File 'lib/asciidoctor.rb', line 112 def define key, value instance_variable_set %(@#{key}), value singleton_class.send :attr_accessor, key @keys << key nil end |