lib/vbsmin.rb
# Create the path of the minified file from the path of the original file
Create the path of the minified file from the path of the original file
Create the path of the minified file from the path of the original file
def min_ext
    extension = File.extname(@original_filepath).downcase
    abort 'Not a .vbs file' unless extension == '.vbs'
    min_filepath = "#{@original_filepath.chomp(extension)}.min.vbs"
    @min_filepath = min_filepath
    return min_filepath
  end
def min_ext extension = File . extname ( @original_filepath ) . downcase abort 'Not a .vbs file' unless extension == '.vbs' min_filepath = "#{@original_filepath.chomp(extension)}.min.vbs" @min_filepath = min_filepath return min_filepath end
Create the path of the minified file from the path of the original file
Create the path of the minified file from the path of the original file