Class: CommandBuilder::CommandBase

Inherits:
Object
  • Object
show all
Defined in:
lib/command_builder_generator/lib/command_base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCommandBase

Returns a new instance of CommandBase.



8
9
10
11
12
13
# File 'lib/command_builder_generator/lib/command_base.rb', line 8

def initialize
puts 'aaaa'
  @s = StringIO.new
  @f = ArgumentFormatter.new
  @passwords = []
end

Instance Attribute Details

#passwordsObject (readonly)

Returns the value of attribute passwords.



6
7
8
# File 'lib/command_builder_generator/lib/command_base.rb', line 6

def passwords
  @passwords
end

Instance Method Details

#to_sObject



15
16
17
# File 'lib/command_builder_generator/lib/command_base.rb', line 15

def to_s
  @s.string
end