Asciidoctor::Helpers
Constants
ROMAN_NUMERALS = {'I' => 1, 'V' => 5, 'X' => 10, 'L' => 50, 'C' => 100, 'D' => 500, 'M' => 1000}
ROMAN_NUMERALS_WITH_REDUCERS = [{"M", 1000}, {"CM", 900}, {"D", 500}, {"CD", 400}, {"C", 100}, {"XC", 90}, {"L", 50}, {"XL", 40}, {"X", 10}, {"IX", 9}, {"V", 5}, {"IV", 4}, {"I", 1}]
Instance methods
Public: Retrieves the basename of the filename, optionally removing the extension.
Internal: Apply URI path encoding to spaces in the specified string.
Internal: Encode a URI component String for safe inclusion in a URI.
Public: Retrieves the file extension of the specified path.
Internal: Make a directory, ensuring all parent directories exist.
Internal: Prepare the source data Array for parsing.
Internal: Prepare the source data String for parsing.
Internal: Resolve a system path from the target and start values.
Internal: Converts an uppercase Roman numeral to an integer.
Public: Removes the file extension from filename and returns the result.