Class: RubyCommentTester

Inherits:
Console::Application
  • Object
show all
Defined in:
lib/reap/bin/rubytest.rb

Constant Summary collapse

RETEST =
/^=begin\s+test.*?\n(.*)\n=end/mi

Instance Method Summary collapse

Instance Method Details

#__helpObject Also known as: _h

option to display help



14
15
16
17
# File 'lib/reap/bin/rubytest.rb', line 14

def __help
  puts HELP
  exit 0
end

#__verboseObject Also known as: _v

option to display help



10
# File 'lib/reap/bin/rubytest.rb', line 10

def __verbose ; $VERBOSE = true ; end

#main(*filepaths) ⇒ Object



20
21
22
23
24
# File 'lib/reap/bin/rubytest.rb', line 20

def main( *filepaths )
  filepaths.each { |fp|
    run_comment_test( fp )
  }
end