lib/cliutils/ext/Logger+Extensions.rb in cliutils-1.0.2 vs lib/cliutils/ext/Logger+Extensions.rb in cliutils-1.0.3

- old
+ new

@@ -1,18 +1,13 @@ require 'logger' -# ====================================================== -# Logger Class -# ====================================================== +# Logger Class extensions class Logger - # ---------------------------------------------------- - # custom_level method - # - # Creates a custom Logger level based on the passed - # tag. - # @param tag The Logger level to create - # @return Void - # ---------------------------------------------------- + + # Creates a custom Logger level based on the passed + # tag. + # @param [String] tag The Logger level to create + # @return [void] def self.custom_level(tag) SEV_LABEL << tag idx = SEV_LABEL.size - 1 define_method(tag.downcase.gsub(/\W+/, '_').to_sym) do |progname, &block| \ No newline at end of file