module Asciidoctor::Compliance

Flags to control compliance with the behavior of AsciiDoc

Attributes

keys[R]

Public Class Methods

define(key, value) click to toggle source

Defines a new compliance key and assigns an initial value.

# File lib/asciidoctor.rb, line 107
def self.define key, value
  if key == :keys || (self.respond_to? key)
    raise ::ArgumentError, %Q(illegal key name: #{key})
  end
  instance_variable_set %Q(@#{key}), value
  class << self; self; end.send :attr_accessor, key
  @keys << key
end