Class: Cmdlet::CmdletConfiguration

Inherits:
Object
  • Object
show all
Includes:
KLog::Logging
Defined in:
lib/cmdlet/configuration.rb

Overview

Structure for storing Cmdlet configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCmdletConfiguration

Returns a new instance of CmdletConfiguration.



23
24
25
26
27
# File 'lib/cmdlet/configuration.rb', line 23

def initialize
  @tokenizer = Cmdlet::StringTokenizer.new

  reset
end

Instance Attribute Details

#padl_charObject

Returns the value of attribute padl_char.



19
20
21
# File 'lib/cmdlet/configuration.rb', line 19

def padl_char
  @padl_char
end

#padl_countObject

Returns the value of attribute padl_count.



18
19
20
# File 'lib/cmdlet/configuration.rb', line 18

def padl_count
  @padl_count
end

#padr_charObject

Returns the value of attribute padr_char.



21
22
23
# File 'lib/cmdlet/configuration.rb', line 21

def padr_char
  @padr_char
end

#padr_countObject

Returns the value of attribute padr_count.



20
21
22
# File 'lib/cmdlet/configuration.rb', line 20

def padr_count
  @padr_count
end

#tokenizerObject

Returns the value of attribute tokenizer.



17
18
19
# File 'lib/cmdlet/configuration.rb', line 17

def tokenizer
  @tokenizer
end

Instance Method Details

#resetObject



29
30
31
32
33
34
# File 'lib/cmdlet/configuration.rb', line 29

def reset
  @padr_count = 30
  @padr_char = ' '
  @padl_count = 30
  @padl_char = ' '
end