Method: Uspec::CLI#initialize
- Defined in:
- lib/uspec/cli.rb
#initialize(args) ⇒ CLI
Returns a new instance of CLI.
5 6 7 8 9 10 11 12 |
# File 'lib/uspec/cli.rb', line 5 def initialize args usage unless (args & %w[-h --help -? /? -v --version]).empty? @paths = args @pwd = Pathname.pwd.freeze @stats = Uspec::Stats.new @dsl = Uspec::DSL.new self end |