class Retest::Options
Attributes
args[R]
Public Class Methods
command(args)
click to toggle source
# File lib/retest/options.rb, line 101 def self.command(args) new(args).command end
new(args = [])
click to toggle source
# File lib/retest/options.rb, line 105 def initialize(args = []) self.args = args end
Public Instance Methods
args=(args)
click to toggle source
# File lib/retest/options.rb, line 109 def args=(args) @args = args parse args end
auto?()
click to toggle source
# File lib/retest/options.rb, line 122 def auto? return true if no_options_passed? params[:auto] end
full_suite?()
click to toggle source
# File lib/retest/options.rb, line 118 def full_suite? params[:all] end
help?()
click to toggle source
# File lib/retest/options.rb, line 114 def help? params[:help] end
Private Instance Methods
no_options_passed?()
click to toggle source
# File lib/retest/options.rb, line 129 def no_options_passed? params.to_h.values.compact.uniq == [false] end