brew/Library/Homebrew/sorbet/rbi/gems/ronn@0.7.3.rbi

760 lines
20 KiB
Plaintext
Raw Normal View History

# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `ronn` gem.
2021-09-17 19:28:50 +01:00
# Please instead update this file by running `bin/tapioca gem ronn`.
2023-12-14 15:34:15 +00:00
# Ronn is a humane text format and toolchain for authoring manpages (and
# things that appear as manpages from a distance). Use it to build /
# install standard UNIX roff(7) formatted manpages or to generate
# beautiful HTML manpages.
#
# source://ronn//lib/ronn.rb#5
2021-09-10 21:21:17 +01:00
module Ronn
class << self
2023-12-14 15:34:15 +00:00
# Create a new Ronn::Document for the given ronn file. See
# Ronn::Document.new for usage information.
#
# source://ronn//lib/ronn.rb#14
2021-09-10 21:21:17 +01:00
def new(filename, attributes = T.unsafe(nil), &block); end
2023-12-14 15:34:15 +00:00
# truthy when this a release (\d.\d.\d) version.
#
# @return [Boolean]
#
# source://ronn//lib/ronn.rb#19
2021-09-10 21:21:17 +01:00
def release?; end
2023-12-14 15:34:15 +00:00
# revision: 0.6.6-5-gdacd74b
# revision: 0.6.25
#
# The string revision as reported by: git-describe --tags. This is just the
# tag name when a tag references the HEAD commit (0.6.25). When the HEAD
# commit is not tagged, this is a "<tag>-<offset>-<sha1>" string:
# <tag> - closest tag name
# <offset> - number of commits ahead of <tag>
# <sha1> - 7c short SHA1 for HEAD
#
# source://ronn//lib/ronn.rb#43
2021-09-10 21:21:17 +01:00
def revision; end
2023-12-14 15:34:15 +00:00
# version: 0.6.11
#
# A semantic version number based on the git revision. The third element
# of the version is incremented by the commit offset, such that version
# 0.6.6-5-gdacd74b => 0.6.11
#
# source://ronn//lib/ronn.rb#28
2021-09-10 21:21:17 +01:00
def version; end
end
end
2023-12-14 15:34:15 +00:00
# The Document class can be used to load and inspect a ronn document
# and to convert a ronn document into other formats, like roff or
# HTML.
#
# Ronn files may optionally follow the naming convention:
# "<name>.<section>.ronn". The <name> and <section> are used in
# generated documentation unless overridden by the information
# extracted from the document's name section.
#
# source://ronn//lib/ronn/document.rb#18
2021-09-10 21:21:17 +01:00
class Ronn::Document
include ::Ronn::Utils
2023-12-14 15:34:15 +00:00
# Create a Ronn::Document given a path or with the data returned by
# calling the block. The document is loaded and preprocessed before
# the intialize method returns. The attributes hash may contain values
# for any writeable attributes defined on this class.
#
# @return [Document] a new instance of Document
#
# source://ronn//lib/ronn/document.rb#64
2021-09-10 21:21:17 +01:00
def initialize(path = T.unsafe(nil), attributes = T.unsafe(nil), &block); end
2023-12-14 15:34:15 +00:00
# Generate a file basename of the form "<name>.<section>.<type>"
# for the given file extension. Uses the name and section from
# the source file path but falls back on the name and section
# defined in the document.
#
# source://ronn//lib/ronn/document.rb#91
2021-09-10 21:21:17 +01:00
def basename(type = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# Convert the document to :roff, :html, or :html_fragment and
# return the result as a string.
#
# source://ronn//lib/ronn/document.rb#220
2021-09-10 21:21:17 +01:00
def convert(format); end
2023-12-14 15:34:15 +00:00
# The raw input data, read from path or stream and unmodified.
#
# source://ronn//lib/ronn/document.rb#26
2021-09-10 21:21:17 +01:00
def data; end
2023-12-14 15:34:15 +00:00
# The date the man page was published. If not set explicitly,
# this is the file's modified time or, if no file is given,
# the current time.
#
# source://ronn//lib/ronn/document.rb#166
2021-09-10 21:21:17 +01:00
def date; end
2023-12-14 15:34:15 +00:00
# The date the document was published; center displayed in
# the document footer.
#
# source://ronn//lib/ronn/document.rb#55
2021-09-10 21:21:17 +01:00
def date=(_arg0); end
2023-12-14 15:34:15 +00:00
# A Hpricot::Document for the manual content fragment.
#
# source://ronn//lib/ronn/document.rb#214
2021-09-10 21:21:17 +01:00
def html; end
2023-12-14 15:34:15 +00:00
# The index used to resolve man and file references.
#
# source://ronn//lib/ronn/document.rb#29
2021-09-10 21:21:17 +01:00
def index; end
2023-12-14 15:34:15 +00:00
# The index used to resolve man and file references.
#
# source://ronn//lib/ronn/document.rb#29
2021-09-10 21:21:17 +01:00
def index=(_arg0); end
2023-12-14 15:34:15 +00:00
# The manual this document belongs to; center displayed in
# the header.
#
# source://ronn//lib/ronn/document.rb#47
2021-09-10 21:21:17 +01:00
def manual; end
2023-12-14 15:34:15 +00:00
# The manual this document belongs to; center displayed in
# the header.
#
# source://ronn//lib/ronn/document.rb#47
2021-09-10 21:21:17 +01:00
def manual=(_arg0); end
2023-12-14 15:34:15 +00:00
# Preprocessed markdown input text.
#
# source://ronn//lib/ronn/document.rb#209
2021-09-10 21:21:17 +01:00
def markdown; end
2023-12-14 15:34:15 +00:00
# Returns the manual page name based first on the document's
# contents and then on the path name.
#
# source://ronn//lib/ronn/document.rb#123
2021-09-10 21:21:17 +01:00
def name; end
2023-12-14 15:34:15 +00:00
# The man pages name: usually a single word name of
# a program or filename; displayed along with the section in
# the left and right portions of the header as well as the bottom
# right section of the footer.
#
# source://ronn//lib/ronn/document.rb#35
2021-09-10 21:21:17 +01:00
def name=(_arg0); end
2023-12-14 15:34:15 +00:00
# Truthful when the name was extracted from the name section
# of the document.
#
# @return [Boolean]
#
# source://ronn//lib/ronn/document.rb#129
2021-09-10 21:21:17 +01:00
def name?; end
2023-12-14 15:34:15 +00:00
# The name of the group, organization, or individual responsible
# for this document; displayed in the left portion of the footer.
#
# source://ronn//lib/ronn/document.rb#51
2021-09-10 21:21:17 +01:00
def organization; end
2023-12-14 15:34:15 +00:00
# The name of the group, organization, or individual responsible
# for this document; displayed in the left portion of the footer.
#
# source://ronn//lib/ronn/document.rb#51
2021-09-10 21:21:17 +01:00
def organization=(_arg0); end
2023-12-14 15:34:15 +00:00
# Path to the Ronn document. This may be '-' or nil when the Ronn::Document
# object is created with a stream.
#
# source://ronn//lib/ronn/document.rb#23
2021-09-10 21:21:17 +01:00
def path; end
2023-12-14 15:34:15 +00:00
# Construct a path for a file near the source file. Uses the
# Document#basename method to generate the basename part and
# appends it to the dirname of the source document.
#
# source://ronn//lib/ronn/document.rb#100
2021-09-10 21:21:17 +01:00
def path_for(type = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# Returns the <name> part of the path, or nil when no path is
# available. This is used as the manual page name when the
# file contents do not include a name section.
#
# source://ronn//lib/ronn/document.rb#111
2021-09-10 21:21:17 +01:00
def path_name; end
2023-12-14 15:34:15 +00:00
# Returns the <section> part of the path, or nil when
# no path is available.
#
# source://ronn//lib/ronn/document.rb#117
2021-09-10 21:21:17 +01:00
def path_section; end
2023-12-14 15:34:15 +00:00
# The name used to reference this manual.
#
# source://ronn//lib/ronn/document.rb#146
2021-09-10 21:21:17 +01:00
def reference_name; end
2023-12-14 15:34:15 +00:00
# Returns the manual page section based first on the document's
# contents and then on the path name.
#
# source://ronn//lib/ronn/document.rb#135
2021-09-10 21:21:17 +01:00
def section; end
2023-12-14 15:34:15 +00:00
# The man page's section: a string whose first character
# is numeric; displayed in parenthesis along with the name.
#
# source://ronn//lib/ronn/document.rb#39
2021-09-10 21:21:17 +01:00
def section=(_arg0); end
2023-12-14 15:34:15 +00:00
# True when the section number was extracted from the name
# section of the document.
#
# @return [Boolean]
#
# source://ronn//lib/ronn/document.rb#141
2021-09-10 21:21:17 +01:00
def section?; end
2023-12-14 15:34:15 +00:00
# Retrieve a list of top-level section headings in the document and return
# as an array of +[id, text]+ tuples, where +id+ is the element's generated
# id and +text+ is the inner text of the heading element.
#
# source://ronn//lib/ronn/document.rb#175
2021-09-10 21:21:17 +01:00
def section_heads; end
2023-12-14 15:34:15 +00:00
# Sniff the document header and extract basic document metadata. Return a
# tuple of the form: [name, section, description], where missing information
# is represented by nil and any element may be missing.
#
# source://ronn//lib/ronn/document.rb#190
2021-09-10 21:21:17 +01:00
def sniff; end
2023-12-14 15:34:15 +00:00
# Array of style modules to apply to the document.
#
# source://ronn//lib/ronn/document.rb#58
2021-09-10 21:21:17 +01:00
def styles; end
2023-12-14 15:34:15 +00:00
# Styles to insert in the generated HTML output. This is a simple Array of
# string module names or file paths.
#
# source://ronn//lib/ronn/document.rb#183
2021-09-10 21:21:17 +01:00
def styles=(styles); end
2023-12-14 15:34:15 +00:00
# Single sentence description of the thing being described
# by this man page; displayed in the NAME section.
#
# source://ronn//lib/ronn/document.rb#43
2021-09-10 21:21:17 +01:00
def tagline; end
2023-12-14 15:34:15 +00:00
# Single sentence description of the thing being described
# by this man page; displayed in the NAME section.
#
# source://ronn//lib/ronn/document.rb#43
2021-09-10 21:21:17 +01:00
def tagline=(_arg0); end
2023-12-14 15:34:15 +00:00
# The document's title when no name section was defined. When a name section
# exists, this value is nil.
#
# source://ronn//lib/ronn/document.rb#159
2021-09-10 21:21:17 +01:00
def title; end
2023-12-14 15:34:15 +00:00
# Truthful when the document started with an h1 but did not follow
# the "<name>(<sect>) -- <tagline>" convention. We assume this is some kind
# of custom title.
#
# @return [Boolean]
#
# source://ronn//lib/ronn/document.rb#153
2021-09-10 21:21:17 +01:00
def title?; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/document.rb#263
2021-09-10 21:21:17 +01:00
def to_h; end
2023-12-14 15:34:15 +00:00
# Convert the document to HTML and return the result as a string.
#
# source://ronn//lib/ronn/document.rb#234
2021-09-10 21:21:17 +01:00
def to_html; end
2023-12-14 15:34:15 +00:00
# Convert the document to HTML and return the result
# as a string. The HTML does not include <html>, <head>,
# or <style> tags.
#
# source://ronn//lib/ronn/document.rb#250
2021-09-10 21:21:17 +01:00
def to_html_fragment(wrap_class = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/document.rb#273
2021-09-10 21:21:17 +01:00
def to_json; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/document.rb#259
2021-09-10 21:21:17 +01:00
def to_markdown; end
2023-12-14 15:34:15 +00:00
# Convert the document to roff and return the result as a string.
#
# source://ronn//lib/ronn/document.rb#225
2021-09-10 21:21:17 +01:00
def to_roff; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/document.rb#268
2021-09-10 21:21:17 +01:00
def to_yaml; end
2023-12-14 15:34:15 +00:00
# Retrieve a list of top-level section headings in the document and return
# as an array of +[id, text]+ tuples, where +id+ is the element's generated
# id and +text+ is the inner text of the heading element.
#
# source://ronn//lib/ronn/document.rb#175
2021-09-10 21:21:17 +01:00
def toc; end
protected
2023-12-14 15:34:15 +00:00
# Perform angle quote (<THESE>) post filtering.
#
# source://ronn//lib/ronn/document.rb#355
2021-09-10 21:21:17 +01:00
def html_filter_angle_quotes; end
2023-12-14 15:34:15 +00:00
# Add a 'data-bare-link' attribute to hyperlinks
# whose text labels are the same as their href URLs.
#
# source://ronn//lib/ronn/document.rb#423
2021-09-10 21:21:17 +01:00
def html_filter_annotate_bare_links; end
2023-12-14 15:34:15 +00:00
# Convert special format unordered lists to definition lists.
#
# source://ronn//lib/ronn/document.rb#369
2021-09-10 21:21:17 +01:00
def html_filter_definition_lists; end
2023-12-14 15:34:15 +00:00
# Add URL anchors to all HTML heading elements.
#
# source://ronn//lib/ronn/document.rb#415
2021-09-10 21:21:17 +01:00
def html_filter_heading_anchors; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/document.rb#395
2021-09-10 21:21:17 +01:00
def html_filter_inject_name_section; end
2023-12-14 15:34:15 +00:00
# Convert text of the form "name(section)" to a hyperlink. The URL is
# obtaiend from the index.
#
# source://ronn//lib/ronn/document.rb#439
2021-09-10 21:21:17 +01:00
def html_filter_manual_reference_links; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/document.rb#289
2021-09-10 21:21:17 +01:00
def input_html; end
2023-12-14 15:34:15 +00:00
# Convert <WORD> to <var>WORD</var> but only if WORD isn't an HTML tag.
#
# source://ronn//lib/ronn/document.rb#341
2021-09-10 21:21:17 +01:00
def markdown_filter_angle_quotes(markdown); end
2023-12-14 15:34:15 +00:00
# Add [id]: #ANCHOR elements to the markdown source text for all sections.
# This lets us use the [SECTION-REF][] syntax
#
# source://ronn//lib/ronn/document.rb#328
2021-09-10 21:21:17 +01:00
def markdown_filter_heading_anchors(markdown); end
2023-12-14 15:34:15 +00:00
# Appends all index links to the end of the document as Markdown reference
# links. This lets us use [foo(3)][] syntax to link to index entries.
#
# source://ronn//lib/ronn/document.rb#320
2021-09-10 21:21:17 +01:00
def markdown_filter_link_index(markdown); end
2023-12-14 15:34:15 +00:00
# Parse the document and extract the name, section, and tagline from its
# contents. This is called while the object is being initialized.
#
# source://ronn//lib/ronn/document.rb#284
2021-09-10 21:21:17 +01:00
def preprocess!; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/document.rb#304
2021-09-10 21:21:17 +01:00
def process_html!; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/document.rb#298
2021-09-10 21:21:17 +01:00
def process_markdown!; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/document.rb#293
2021-09-10 21:21:17 +01:00
def strip_heading(html); end
end
2023-12-14 15:34:15 +00:00
# Maintains a list of links / references to manuals and other resources.
#
# source://ronn//lib/ronn/index.rb#6
2021-09-10 21:21:17 +01:00
class Ronn::Index
include ::Enumerable
2023-12-14 15:34:15 +00:00
# @return [Index] a new instance of Index
#
# source://ronn//lib/ronn/index.rb#30
2021-09-10 21:21:17 +01:00
def initialize(path, &bk); end
2023-12-14 15:34:15 +00:00
# @raise [ArgumentError]
#
# source://ronn//lib/ronn/index.rb#89
2021-09-10 21:21:17 +01:00
def <<(path); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/index.rb#81
2021-09-10 21:21:17 +01:00
def [](name); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/index.rb#102
2021-09-10 21:21:17 +01:00
def add_manual(manual); end
2023-12-14 15:34:15 +00:00
# Enumerable and friends
#
# source://ronn//lib/ronn/index.rb#61
2021-09-10 21:21:17 +01:00
def each(&bk); end
2023-12-14 15:34:15 +00:00
# @return [Boolean]
#
# source://ronn//lib/ronn/index.rb#77
2021-09-10 21:21:17 +01:00
def empty?; end
2023-12-14 15:34:15 +00:00
# Determine whether the index file exists.
#
# @return [Boolean]
#
# source://ronn//lib/ronn/index.rb#43
2021-09-10 21:21:17 +01:00
def exist?; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/index.rb#69
2021-09-10 21:21:17 +01:00
def first; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/index.rb#73
2021-09-10 21:21:17 +01:00
def last; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/index.rb#107
2021-09-10 21:21:17 +01:00
def manual(path); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/index.rb#111
2021-09-10 21:21:17 +01:00
def manuals; end
2023-12-14 15:34:15 +00:00
# Returns the value of attribute path.
#
# source://ronn//lib/ronn/index.rb#9
2021-09-10 21:21:17 +01:00
def path; end
2023-12-14 15:34:15 +00:00
# Load index data from a string.
#
# source://ronn//lib/ronn/index.rb#48
2021-09-10 21:21:17 +01:00
def read!(data); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/index.rb#85
2021-09-10 21:21:17 +01:00
def reference(name, path); end
2023-12-14 15:34:15 +00:00
# Returns the value of attribute references.
#
# source://ronn//lib/ronn/index.rb#10
2021-09-10 21:21:17 +01:00
def references; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/index.rb#131
2021-09-10 21:21:17 +01:00
def relative_to_index(path); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/index.rb#65
2021-09-10 21:21:17 +01:00
def size; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/index.rb#123
2021-09-10 21:21:17 +01:00
def to_a; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/index.rb#127
2021-09-10 21:21:17 +01:00
def to_h; end
2023-12-14 15:34:15 +00:00
# Converting
#
# source://ronn//lib/ronn/index.rb#119
2021-09-10 21:21:17 +01:00
def to_text; end
class << self
2023-12-14 15:34:15 +00:00
# Retrieve an Index for <path>, where <path> is a directory or normal
# file. The index is loaded from the corresponding index.txt file if
# one exists.
#
# source://ronn//lib/ronn/index.rb#15
2021-09-10 21:21:17 +01:00
def [](path); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/index.rb#20
2021-09-10 21:21:17 +01:00
def index_path_for_file(file); end
end
end
2023-12-14 15:34:15 +00:00
# value generated by: rake rev
#
# source://ronn//lib/ronn.rb#48
2021-09-10 21:21:17 +01:00
Ronn::REV = T.let(T.unsafe(nil), String)
2023-12-14 15:34:15 +00:00
# An individual index reference. A reference can point to one of a few types
# of locations:
#
# - URLs: "http://man.cx/crontab(5)"
# - Relative paths to ronn manuals: "crontab.5.ronn"
#
# The #url method should be used to obtain the href value for HTML.
#
# source://ronn//lib/ronn/index.rb#145
2021-09-10 21:21:17 +01:00
class Ronn::Reference
2023-12-14 15:34:15 +00:00
# @return [Reference] a new instance of Reference
#
# source://ronn//lib/ronn/index.rb#149
2021-09-10 21:21:17 +01:00
def initialize(index, name, location); end
2023-12-14 15:34:15 +00:00
# Returns the value of attribute location.
#
# source://ronn//lib/ronn/index.rb#147
2021-09-10 21:21:17 +01:00
def location; end
2023-12-14 15:34:15 +00:00
# @return [Boolean]
#
# source://ronn//lib/ronn/index.rb#155
2021-09-10 21:21:17 +01:00
def manual?; end
2023-12-14 15:34:15 +00:00
# Returns the value of attribute name.
#
# source://ronn//lib/ronn/index.rb#146
2021-09-10 21:21:17 +01:00
def name; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/index.rb#179
2021-09-10 21:21:17 +01:00
def path; end
2023-12-14 15:34:15 +00:00
# @return [Boolean]
#
# source://ronn//lib/ronn/index.rb#167
2021-09-10 21:21:17 +01:00
def relative?; end
2023-12-14 15:34:15 +00:00
# @return [Boolean]
#
# source://ronn//lib/ronn/index.rb#163
2021-09-10 21:21:17 +01:00
def remote?; end
2023-12-14 15:34:15 +00:00
# @return [Boolean]
#
# source://ronn//lib/ronn/index.rb#159
2021-09-10 21:21:17 +01:00
def ronn?; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/index.rb#171
2021-09-10 21:21:17 +01:00
def url; end
end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/roff.rb#5
2021-09-10 21:21:17 +01:00
class Ronn::RoffFilter
include ::Ronn::Utils
2023-12-14 15:34:15 +00:00
# Convert Ronn HTML to roff.
#
# @return [RoffFilter] a new instance of RoffFilter
#
# source://ronn//lib/ronn/roff.rb#9
2021-09-10 21:21:17 +01:00
def initialize(html, name, section, tagline, manual = T.unsafe(nil), version = T.unsafe(nil), date = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/roff.rb#19
2021-09-10 21:21:17 +01:00
def to_s; end
protected
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/roff.rb#80
2021-09-10 21:21:17 +01:00
def block_filter(node); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/roff.rb#276
2021-09-10 21:21:17 +01:00
def comment(text); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/roff.rb#241
2021-09-10 21:21:17 +01:00
def escape(text); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/roff.rb#162
2021-09-10 21:21:17 +01:00
def inline_filter(node); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/roff.rb#221
2021-09-10 21:21:17 +01:00
def macro(name, value = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/roff.rb#47
2021-09-10 21:21:17 +01:00
def normalize_whitespace!(node); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/roff.rb#24
2021-09-10 21:21:17 +01:00
def previous(node); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/roff.rb#254
2021-09-10 21:21:17 +01:00
def quote(text); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/roff.rb#39
2021-09-10 21:21:17 +01:00
def remove_extraneous_elements!(doc); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/roff.rb#32
2021-09-10 21:21:17 +01:00
def title_heading(name, section, tagline, manual, version, date); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/roff.rb#280
2021-09-10 21:21:17 +01:00
def warn(text, *args); end
2023-12-14 15:34:15 +00:00
# write text to output buffer
#
# source://ronn//lib/ronn/roff.rb#259
2021-09-10 21:21:17 +01:00
def write(text); end
2023-12-14 15:34:15 +00:00
# write text to output buffer on a new line.
#
# source://ronn//lib/ronn/roff.rb#270
2021-09-10 21:21:17 +01:00
def writeln(text); end
end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/roff.rb#225
2021-09-10 21:21:17 +01:00
Ronn::RoffFilter::HTML_ROFF_ENTITIES = T.let(T.unsafe(nil), Hash)
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/template.rb#4
2021-09-10 21:21:17 +01:00
class Ronn::Template < ::Mustache
2023-12-14 15:34:15 +00:00
# @return [Template] a new instance of Template
#
# source://ronn//lib/ronn/template.rb#8
2021-09-10 21:21:17 +01:00
def initialize(document, style_path = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# @return [Boolean]
#
# source://ronn//lib/ronn/template.rb#45
2021-09-10 21:21:17 +01:00
def custom_title?; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/template.rb#69
2021-09-10 21:21:17 +01:00
def date; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/template.rb#57
2021-09-10 21:21:17 +01:00
def generator; end
2023-12-14 15:34:15 +00:00
# TEMPLATE CSS LOADING
#
# source://ronn//lib/ronn/template.rb#144
2021-09-10 21:21:17 +01:00
def inline_stylesheet(path, media = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/template.rb#61
2021-09-10 21:21:17 +01:00
def manual; end
2023-12-14 15:34:15 +00:00
# Array of style names for which no file could be found.
#
# source://ronn//lib/ronn/template.rb#134
2021-09-10 21:21:17 +01:00
def missing_styles; end
2023-12-14 15:34:15 +00:00
# Basic document attributes
#
# source://ronn//lib/ronn/template.rb#20
2021-09-10 21:21:17 +01:00
def name; end
2023-12-14 15:34:15 +00:00
# @return [Boolean]
#
# source://ronn//lib/ronn/template.rb#33
2021-09-10 21:21:17 +01:00
def name_and_section?; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/template.rb#65
2021-09-10 21:21:17 +01:00
def organization; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/template.rb#49
2021-09-10 21:21:17 +01:00
def page_name; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/template.rb#162
2021-09-10 21:21:17 +01:00
def remote_stylesheet(name, media = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/template.rb#13
2021-09-10 21:21:17 +01:00
def render(template = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/template.rb#24
2021-09-10 21:21:17 +01:00
def section; end
2023-12-14 15:34:15 +00:00
# Section TOCs
#
# source://ronn//lib/ronn/template.rb#80
2021-09-10 21:21:17 +01:00
def section_heads; end
2023-12-14 15:34:15 +00:00
# Array of expanded stylesheet file names. If a file cannot be found, the
# resulting array will include nil elements in positions corresponding to
# the stylesheets array.
#
# source://ronn//lib/ronn/template.rb#123
2021-09-10 21:21:17 +01:00
def style_files; end
2023-12-14 15:34:15 +00:00
# Returns the value of attribute style_path.
#
# source://ronn//lib/ronn/template.rb#118
2021-09-10 21:21:17 +01:00
def style_path; end
2023-12-14 15:34:15 +00:00
# Sets the attribute style_path
#
# @param value the value to set the attribute style_path to.
#
# source://ronn//lib/ronn/template.rb#118
2021-09-10 21:21:17 +01:00
def style_path=(_arg0); end
2023-12-14 15:34:15 +00:00
# Array of style module names as given on the command line.
#
# source://ronn//lib/ronn/template.rb#93
2021-09-10 21:21:17 +01:00
def styles; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/template.rb#167
2021-09-10 21:21:17 +01:00
def stylesheet(path, media = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# All embedded stylesheets.
#
# source://ronn//lib/ronn/template.rb#112
2021-09-10 21:21:17 +01:00
def stylesheet_tags; end
2023-12-14 15:34:15 +00:00
# Array of stylesheet info hashes.
#
# source://ronn//lib/ronn/template.rb#98
2021-09-10 21:21:17 +01:00
def stylesheets; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/template.rb#28
2021-09-10 21:21:17 +01:00
def tagline; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/template.rb#28
2021-09-10 21:21:17 +01:00
def tagline?; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/template.rb#37
2021-09-10 21:21:17 +01:00
def title; end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/template.rb#73
2021-09-10 21:21:17 +01:00
def wrap_class_name; end
end
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn/utils.rb#5
2021-09-10 21:21:17 +01:00
module Ronn::Utils
2023-12-14 15:34:15 +00:00
# @return [Boolean]
#
# source://ronn//lib/ronn/utils.rb#31
2021-09-10 21:21:17 +01:00
def block_element?(name); end
2023-12-14 15:34:15 +00:00
# @return [Boolean]
#
# source://ronn//lib/ronn/utils.rb#47
2021-09-10 21:21:17 +01:00
def child_of?(node, tag); end
2023-12-14 15:34:15 +00:00
# @return [Boolean]
#
# source://ronn//lib/ronn/utils.rb#39
2021-09-10 21:21:17 +01:00
def empty_element?(name); end
2023-12-14 15:34:15 +00:00
# @return [Boolean]
#
# source://ronn//lib/ronn/utils.rb#43
2021-09-10 21:21:17 +01:00
def html_element?(name); end
2023-12-14 15:34:15 +00:00
# @return [Boolean]
#
# source://ronn//lib/ronn/utils.rb#35
2021-09-10 21:21:17 +01:00
def inline_element?(name); end
end
2023-12-14 15:34:15 +00:00
# All HTML 4 elements and some that are in common use.
#
# source://ronn//lib/ronn/utils.rb#8
2021-09-10 21:21:17 +01:00
Ronn::Utils::HTML = T.let(T.unsafe(nil), Set)
2023-12-14 15:34:15 +00:00
# Block elements.
#
# source://ronn//lib/ronn/utils.rb#18
2021-09-10 21:21:17 +01:00
Ronn::Utils::HTML_BLOCK = T.let(T.unsafe(nil), Set)
2023-12-14 15:34:15 +00:00
# Elements that don't have a closing tag.
#
# source://ronn//lib/ronn/utils.rb#29
2021-09-10 21:21:17 +01:00
Ronn::Utils::HTML_EMPTY = T.let(T.unsafe(nil), Set)
2023-12-14 15:34:15 +00:00
# Inline elements
#
# source://ronn//lib/ronn/utils.rb#26
2021-09-10 21:21:17 +01:00
Ronn::Utils::HTML_INLINE = T.let(T.unsafe(nil), Set)
2023-12-14 15:34:15 +00:00
# source://ronn//lib/ronn.rb#49
2021-09-10 21:21:17 +01:00
Ronn::VERSION = T.let(T.unsafe(nil), String)