Class: CommitLive::OptionsSanitizer
- Inherits:
-
Object
- Object
- CommitLive::OptionsSanitizer
- Defined in:
- lib/commit-live/options-sanitizer.rb
Constant Summary collapse
- KNOWN_COMMANDS =
[ 'test', 'hello', 'help', 'version', '-v', '--version', 'submit', 'open', 'reset', 'setup' ]
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
Instance Method Summary collapse
-
#initialize(args) ⇒ OptionsSanitizer
constructor
A new instance of OptionsSanitizer.
- #sanitize! ⇒ Object
Constructor Details
#initialize(args) ⇒ OptionsSanitizer
Returns a new instance of OptionsSanitizer.
18 19 20 |
# File 'lib/commit-live/options-sanitizer.rb', line 18 def initialize(args) @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
3 4 5 |
# File 'lib/commit-live/options-sanitizer.rb', line 3 def args @args end |
Instance Method Details
#sanitize! ⇒ Object
22 23 24 |
# File 'lib/commit-live/options-sanitizer.rb', line 22 def sanitize! sanitizeTestArgs! end |