Sha256: 5ddeee66b586c435b6d3ff907637af63ec4e196e907d55f7d074ea9c62ceb8bf
Contents?: true
Size: 340 Bytes
Versions: 4
Compression:
Stored size: 340 Bytes
Contents
# frozen_string_literal: true require "fusuma/string_support" module Fusuma # Rename process module CustomProcess attr_writer :proctitle def fork Process.fork do Process.setproctitle(proctitle) yield end end def proctitle @proctitle ||= self.class.name.underscore end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fusuma-2.5.1 | lib/fusuma/custom_process.rb |
fusuma-2.5.0 | lib/fusuma/custom_process.rb |
fusuma-2.4.1 | lib/fusuma/custom_process.rb |
fusuma-2.4.0 | lib/fusuma/custom_process.rb |