Module: Sys::Proc::Concern::System
- Extended by:
- Helper
- Includes:
- Helper
- Included in:
- Sys::Proc
- Defined in:
- lib/sys/proc/concern/system.rb
Overview
Provides Operating System related methods
This Concern
loads system (OS) related sub-concern (specialisation)
Defined Under Namespace
Modules: Freebsd, Generic, LinuxGnu
Class Method Summary collapse
Instance Method Summary collapse
-
#system ⇒ Symbol
Identify operating system.
Class Method Details
.included(base) ⇒ Object
21 22 23 24 25 |
# File 'lib/sys/proc/concern/system.rb', line 21 def included(base) # Related concern is included recursively base.include(base.new.__send__(:system_concern)) end |
Instance Method Details
#system ⇒ Symbol
Identify operating system
31 32 33 |
# File 'lib/sys/proc/concern/system.rb', line 31 def system (@system || helper.get(:system).identify).to_sym end |