Class: Kward::ConfigFiles::PromptTemplate
- Inherits:
-
Struct
- Object
- Struct
- Kward::ConfigFiles::PromptTemplate
- Defined in:
- lib/kward/config_files.rb
Instance Attribute Summary collapse
-
#argument_hint ⇒ Object
Returns the value of attribute argument_hint.
-
#body ⇒ Object
Returns the value of attribute body.
-
#command ⇒ Object
Returns the value of attribute command.
-
#description ⇒ Object
Returns the value of attribute description.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#argument_hint ⇒ Object
Returns the value of attribute argument_hint
39 40 41 |
# File 'lib/kward/config_files.rb', line 39 def argument_hint @argument_hint end |
#body ⇒ Object
Returns the value of attribute body
39 40 41 |
# File 'lib/kward/config_files.rb', line 39 def body @body end |
#command ⇒ Object
Returns the value of attribute command
39 40 41 |
# File 'lib/kward/config_files.rb', line 39 def command @command end |
#description ⇒ Object
Returns the value of attribute description
39 40 41 |
# File 'lib/kward/config_files.rb', line 39 def description @description end |
#path ⇒ Object
Returns the value of attribute path
39 40 41 |
# File 'lib/kward/config_files.rb', line 39 def path @path end |
Instance Method Details
#expand(arguments) ⇒ Object
40 41 42 |
# File 'lib/kward/config_files.rb', line 40 def (arguments) body.gsub("$ARGUMENTS", arguments.to_s) end |