Class: Cmdlet::CmdletConfiguration
- Inherits:
-
Object
- Object
- Cmdlet::CmdletConfiguration
- Includes:
- KLog::Logging
- Defined in:
- lib/cmdlet/configuration.rb
Overview
Structure for storing Cmdlet configuration
Instance Attribute Summary collapse
-
#padl_char ⇒ Object
Returns the value of attribute padl_char.
-
#padl_count ⇒ Object
Returns the value of attribute padl_count.
-
#padr_char ⇒ Object
Returns the value of attribute padr_char.
-
#padr_count ⇒ Object
Returns the value of attribute padr_count.
-
#tokenizer ⇒ Object
Returns the value of attribute tokenizer.
Instance Method Summary collapse
-
#initialize ⇒ CmdletConfiguration
constructor
A new instance of CmdletConfiguration.
- #reset ⇒ Object
Constructor Details
#initialize ⇒ CmdletConfiguration
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_char ⇒ Object
Returns the value of attribute padl_char.
19 20 21 |
# File 'lib/cmdlet/configuration.rb', line 19 def padl_char @padl_char end |
#padl_count ⇒ Object
Returns the value of attribute padl_count.
18 19 20 |
# File 'lib/cmdlet/configuration.rb', line 18 def padl_count @padl_count end |
#padr_char ⇒ Object
Returns the value of attribute padr_char.
21 22 23 |
# File 'lib/cmdlet/configuration.rb', line 21 def padr_char @padr_char end |
#padr_count ⇒ Object
Returns the value of attribute padr_count.
20 21 22 |
# File 'lib/cmdlet/configuration.rb', line 20 def padr_count @padr_count end |
#tokenizer ⇒ Object
Returns the value of attribute tokenizer.
17 18 19 |
# File 'lib/cmdlet/configuration.rb', line 17 def tokenizer @tokenizer end |
Instance Method Details
#reset ⇒ Object
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 |