Class: Terret::Composition::Tagged

Inherits:
Data
  • Object
show all
Defined in:
lib/terret/composition.rb

Overview

A tag left standing. Resolution keeps these unevaluated so dump-config can print !env OPENROUTER_API_KEY as written — the resolved value never appears in that output at all. Boot materializes them; nothing else does.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argumentObject (readonly)

Returns the value of attribute argument

Returns:

  • (Object)

    the current value of argument



60
61
62
# File 'lib/terret/composition.rb', line 60

def argument
  @argument
end

#tagObject (readonly)

Returns the value of attribute tag

Returns:

  • (Object)

    the current value of tag



60
61
62
# File 'lib/terret/composition.rb', line 60

def tag
  @tag
end

Instance Method Details

#to_sObject



61
# File 'lib/terret/composition.rb', line 61

def to_s = "!#{tag} #{argument}"