LilyPondVersionToken

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph "cluster_abjad.lilypondfile" { graph [label="abjad.lilypondfile"]; node [color=1]; "abjad.lilypondfile.LilyPondVersionToken.LilyPondVersionToken" [URL="../api/abjad/lilypondfile/LilyPondVersionToken.html#abjad.lilypondfile.LilyPondVersionToken.LilyPondVersionToken", color=black, fontcolor=white, label="Lily\nPond\nVersion\nToken", target=_top]; } subgraph "cluster_abjad.system" { graph [label="abjad.system"]; node [color=2]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjad/lilypondfile/../system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; } subgraph cluster_builtins { graph [label=builtins]; node [color=3]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } "abjad.system.AbjadObject.AbjadObject" -> "abjad.lilypondfile.LilyPondVersionToken.LilyPondVersionToken"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjad.lilypondfile.LilyPondVersionToken.LilyPondVersionToken(version_string=None)

A LilyPond file \version token.

>>> abjad.LilyPondVersionToken() 
LilyPondVersionToken('2.19.0')

Attributes Summary

__format__ Formats LilyPond version token.
__repr__ Gets interpreter representation of LilyPond version_string token.
version_string Gets version string of LilyPond version token.

Special methods

__format__(format_specification='')

Formats LilyPond version token.

>>> token = abjad.LilyPondVersionToken()
>>> print(format(token)) 
\version "2.19.0"

Return string.

__repr__()

Gets interpreter representation of LilyPond version_string token.

>>> token = abjad.LilyPondVersionToken()
>>> token 
LilyPondVersionToken('2.19.0')

Returns string.


Read-only properties

version_string

Gets version string of LilyPond version token.

Gets version string from install environment:

>>> token = abjad.LilyPondVersionToken(
...     version_string=None,
...     )
>>> token.version_string 
'2.19.0'

Gets version string from explicit input:

>>> token = abjad.LilyPondVersionToken(
...     version_string='2.19.0',
...     )
>>> token.version_string
'2.19.0'

Returns string.