lib/AutoFileLogger.rb
# Requires the class name, method name & then it derives file size
Requires the class name, method name & then it derives file size
Requires the class name method name & then it derives file size
def discover_log_name(the_class, the_method)
    class_name = the_class.to_s.split(" ").last.split('.').first
    class_size = File.size(the_class.source_location.first)
    "#{class_name}_#{the_method}_#{class_size}"
  end
def discover_log_name ( the_class , the_method ) class_name = the_class . to_s . split ( " " ) . last . split ( '.' ) . first class_size = File . size ( the_class . source_location . first ) "#{class_name}_#{the_method}_#{class_size}" end
Requires the class name, method name & then it derives file size
Requires the class name method name & then it derives file size
the_class
<not_specific>
the_method
<not_specific>