Skip to content
Kward Search API index

Class: Kward::ConfigFiles::PromptTemplate

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argument_hint ⇒ Object

Returns the value of attribute argument_hint

Returns:

  • (Object) —

    the current value of argument_hint



35
36
37
# File 'lib/kward/config/core.rb', line 35

def argument_hint
  @argument_hint
end

#body ⇒ Object

Returns the value of attribute body

Returns:

  • (Object) —

    the current value of body



35
36
37
# File 'lib/kward/config/core.rb', line 35

def body
  @body
end

#command ⇒ Object

Returns the value of attribute command

Returns:

  • (Object) —

    the current value of command



35
36
37
# File 'lib/kward/config/core.rb', line 35

def command
  @command
end

#description ⇒ Object

Returns the value of attribute description

Returns:

  • (Object) —

    the current value of description



35
36
37
# File 'lib/kward/config/core.rb', line 35

def description
  @description
end

#path ⇒ Object

Returns the value of attribute path

Returns:

  • (Object) —

    the current value of path



35
36
37
# File 'lib/kward/config/core.rb', line 35

def path
  @path
end

Instance Method Details

#expand(arguments) ⇒ Object



36
37
38
# File 'lib/kward/config/core.rb', line 36

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