Class: Formatron::Completion::Template
- Inherits:
-
Object
- Object
- Formatron::Completion::Template
- Defined in:
- lib/formatron/completion.rb
Overview
exports commands, etc to completion script ERB template
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#subcommands ⇒ Object
readonly
Returns the value of attribute subcommands.
Instance Method Summary collapse
-
#initialize(command, subcommands) ⇒ Template
constructor
A new instance of Template.
Constructor Details
#initialize(command, subcommands) ⇒ Template
Returns a new instance of Template.
8 9 10 11 |
# File 'lib/formatron/completion.rb', line 8 def initialize(command, subcommands) @command = command @subcommands = subcommands end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
6 7 8 |
# File 'lib/formatron/completion.rb', line 6 def command @command end |
#subcommands ⇒ Object (readonly)
Returns the value of attribute subcommands.
6 7 8 |
# File 'lib/formatron/completion.rb', line 6 def subcommands @subcommands end |