module TerseRuby
Public Class Methods
scan_files(argv)
click to toggle source
Routing method to call the proper method
# 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