# typed: true # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `ronn` gem. # Please instead update this file by running `bin/tapioca gem ronn`. # 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 module Ronn class << self # Create a new Ronn::Document for the given ronn file. See # Ronn::Document.new for usage information. # # source://ronn//lib/ronn.rb#14 def new(filename, attributes = T.unsafe(nil), &block); end # truthy when this a release (\d.\d.\d) version. # # @return [Boolean] # # source://ronn//lib/ronn.rb#19 def release?; end # 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 "--" string: # - closest tag name # - number of commits ahead of # - 7c short SHA1 for HEAD # # source://ronn//lib/ronn.rb#43 def revision; end # 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 def version; end end end # 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: # ".
.ronn". The and
are used in # generated documentation unless overridden by the information # extracted from the document's name section. # # source://ronn//lib/ronn/document.rb#18 class Ronn::Document include ::Ronn::Utils # 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 def initialize(path = T.unsafe(nil), attributes = T.unsafe(nil), &block); end # Generate a file basename of the form ".
." # 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 def basename(type = T.unsafe(nil)); end # Convert the document to :roff, :html, or :html_fragment and # return the result as a string. # # source://ronn//lib/ronn/document.rb#220 def convert(format); end # The raw input data, read from path or stream and unmodified. # # source://ronn//lib/ronn/document.rb#26 def data; end # 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 def date; end # The date the document was published; center displayed in # the document footer. # # source://ronn//lib/ronn/document.rb#55 def date=(_arg0); end # A Hpricot::Document for the manual content fragment. # # source://ronn//lib/ronn/document.rb#214 def html; end # The index used to resolve man and file references. # # source://ronn//lib/ronn/document.rb#29 def index; end # The index used to resolve man and file references. # # source://ronn//lib/ronn/document.rb#29 def index=(_arg0); end # The manual this document belongs to; center displayed in # the header. # # source://ronn//lib/ronn/document.rb#47 def manual; end # The manual this document belongs to; center displayed in # the header. # # source://ronn//lib/ronn/document.rb#47 def manual=(_arg0); end # Preprocessed markdown input text. # # source://ronn//lib/ronn/document.rb#209 def markdown; end # 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 def name; end # 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 def name=(_arg0); end # Truthful when the name was extracted from the name section # of the document. # # @return [Boolean] # # source://ronn//lib/ronn/document.rb#129 def name?; end # 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 def organization; end # 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 def organization=(_arg0); end # 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 def path; end # 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 def path_for(type = T.unsafe(nil)); end # Returns the 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 def path_name; end # Returns the
part of the path, or nil when # no path is available. # # source://ronn//lib/ronn/document.rb#117 def path_section; end # The name used to reference this manual. # # source://ronn//lib/ronn/document.rb#146 def reference_name; end # 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 def section; end # 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 def section=(_arg0); end # True when the section number was extracted from the name # section of the document. # # @return [Boolean] # # source://ronn//lib/ronn/document.rb#141 def section?; end # 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 def section_heads; end # 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 def sniff; end # Array of style modules to apply to the document. # # source://ronn//lib/ronn/document.rb#58 def styles; end # 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 def styles=(styles); end # Single sentence description of the thing being described # by this man page; displayed in the NAME section. # # source://ronn//lib/ronn/document.rb#43 def tagline; end # Single sentence description of the thing being described # by this man page; displayed in the NAME section. # # source://ronn//lib/ronn/document.rb#43 def tagline=(_arg0); end # 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 def title; end # Truthful when the document started with an h1 but did not follow # the "() -- " convention. We assume this is some kind # of custom title. # # @return [Boolean] # # source://ronn//lib/ronn/document.rb#153 def title?; end # source://ronn//lib/ronn/document.rb#263 def to_h; end # Convert the document to HTML and return the result as a string. # # source://ronn//lib/ronn/document.rb#234 def to_html; end # Convert the document to HTML and return the result # as a string. The HTML does not include , , # or