Class: Formatron::Completion::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/formatron/completion.rb

Overview

exports commands, etc to completion script ERB template

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject (readonly)

Returns the value of attribute command.



6
7
8
# File 'lib/formatron/completion.rb', line 6

def command
  @command
end

#subcommandsObject (readonly)

Returns the value of attribute subcommands.



6
7
8
# File 'lib/formatron/completion.rb', line 6

def subcommands
  @subcommands
end