beancount
    Preparing search index...

    Class Tag

    Represents a tag associated with a transaction. Tags can be specified inline in the transaction or inherited from a tag stack (pushtag/poptag).

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Creates a new Tag instance.

      Parameters

      • obj: { content: string; fromStack: boolean }

        Object containing tag content and source information

        • content: string

          The tag name/content

        • fromStack: boolean

          Whether this tag is from the tag stack

      Returns Tag

    Properties

    content: string

    The tag name/content (without the '#' prefix)

    fromStack: boolean

    Whether this tag comes from the tag stack (pushtag) or is inline

    Methods

    • Converts this tag to its string representation. Tags from the stack return an empty string (they're implicit), while inline tags return '#tagname' format.

      Returns string

      The tag string with '#' prefix, or empty string if from stack