class Sys::Proc::Helper::System::Generic

Provides access to “Sys::Proc::Concerns::System::Generic“ methods

Public Instance Methods

method_missing(method, *args, &block) click to toggle source
Calls superclass method
# File lib/sys/proc/helper/system/generic.rb, line 14
def method_missing(method, *args, &block)
  if respond_to_missing?(method)
    system.public_send(method, *args, &block)
  else
    super
  end
end
respond_to_missing?(method, include_private = false) click to toggle source
Calls superclass method
# File lib/sys/proc/helper/system/generic.rb, line 22
def respond_to_missing?(method, include_private = false)
  return true if system.respond_to?(method, include_private)

  super(method, include_private)
end
setprogname(progname = nil) { |system| ... } click to toggle source

@return [String]

# File lib/sys/proc/helper/system/generic.rb, line 29
def setprogname(progname = nil, &block)
  system.progname = progname || system.default_progname

  system.progname = yield(system) if block
end

Protected Instance Methods

system() click to toggle source
# File lib/sys/proc/helper/system/generic.rb, line 37
def system
  (Class.new { include Sys::Proc::Concern::System::Generic }).new
end