Skip to content
Kward Search API index

Class: Kward::ConfigFiles::PromptTemplate

Inherits:
Struct
  • Object
show all
Defined in:
lib/kward/config_files.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argument_hintObject

Returns the value of attribute argument_hint

Returns:

  • (Object)

    the current value of argument_hint



42
43
44
# File 'lib/kward/config_files.rb', line 42

def argument_hint
  @argument_hint
end

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



42
43
44
# File 'lib/kward/config_files.rb', line 42

def body
  @body
end

#commandObject

Returns the value of attribute command

Returns:

  • (Object)

    the current value of command



42
43
44
# File 'lib/kward/config_files.rb', line 42

def command
  @command
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



42
43
44
# File 'lib/kward/config_files.rb', line 42

def description
  @description
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



42
43
44
# File 'lib/kward/config_files.rb', line 42

def path
  @path
end

Instance Method Details

#expand(arguments) ⇒ Object



43
44
45
# File 'lib/kward/config_files.rb', line 43

def expand(arguments)
  body.gsub("$ARGUMENTS", arguments.to_s)
end