Module: TerseRuby
- Included in:
- TerseJava
- Defined in:
- lib/terse_ruby.rb
Class Method Summary collapse
-
.scan_files(argv) ⇒ Object
Routing method to call the proper method.
Class Method Details
.scan_files(argv) ⇒ Object
Routing method to call the proper method
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/terse_ruby.rb', line 8 def self.scan_files argv puts "\nTerse Ruby called" settings = Terse::Settings.new settings.lang = :ruby settings.file_ext = "rb" settings.one_keyword_per_line = true settings.loop_ending = "end" settings.line_ending = "" settings.indent_in = ["class", "module", "def"] #, "do"] # TODO add "do", adjust indent_in_regex accordingly settings.indent_in_regex = /^\s*([a-zA-Z0-9_]+)\s+|$/ # indent-in keywords should be the first words on a given line settings.indent_out = ["end"] settings.indent_out_regex = /^\s*([a-zA-Z0-9_]+)\s*$/ # indent-out keywords should be the only words on a given line Terse::Scan.scan_files settings, argv end |