System

The System module provides Platform and Ruby system information. The module should also be able to stand in for rbconfig. It is intended for use as a service module although it can be mixed-in too.

Methods
Public Instance methods
argf()

Alias for default_input

argv()
This method is also aliased as options
# File lib/facets/more/system.rb, line 46
  def argv; $* ; end
child_status()
This method is also aliased as exit_status
# File lib/facets/more/system.rb, line 57
  def child_status; $? ; end
coding()
# File lib/facets/more/system.rb, line 70
  def coding; $-K ; end
coding=(x)
# File lib/facets/more/system.rb, line 71
  def coding=(x); $-K=x ; end
data()

Miscellaneous ———————————————

# File lib/facets/more/system.rb, line 125
  def data; DATA ; end
debug()
# File lib/facets/more/system.rb, line 63
  def debug; $DEBUG; end
default_input()
This method is also aliased as defin argf
# File lib/facets/more/system.rb, line 91
  def default_input ; $< ; end
default_output()
This method is also aliased as defout
# File lib/facets/more/system.rb, line 95
  def default_output ; $> ; end
default_output=(x)
This method is also aliased as defout=
# File lib/facets/more/system.rb, line 96
  def default_output=(x); $defout=x ; end
defin()

Alias for default_input

defout()

Alias for default_output

defout=(x)

Alias for default_output=

env()
# File lib/facets/more/system.rb, line 78
  def env; ENV ; end
environment()
# File lib/facets/more/system.rb, line 77
  def environment; ENV ; end
error_info()
# File lib/facets/more/system.rb, line 60
  def error_info; $! ; end
error_position()
# File lib/facets/more/system.rb, line 61
  def error_position; $@ ; end
exit_status()

Alias for child_status

extentions()
# File lib/facets/more/system.rb, line 151
  def extentions
    [ 'rb', DLEXT ]
  end
fs()
fs=(x)
input_field_separator()
This method is also aliased as fs
# File lib/facets/more/system.rb, line 115
  def input_field_separator ; $/ ; end
input_field_separator=(x)
This method is also aliased as fs=
# File lib/facets/more/system.rb, line 116
  def input_field_separator=(x) ; $/=x ; end
input_line_number()
This method is also aliased as input_lineno
# File lib/facets/more/system.rb, line 120
  def input_line_number ; $. ; end
input_lineno()

Alias for input_line_number

input_record_separator()
This method is also aliased as rs
# File lib/facets/more/system.rb, line 110
  def input_record_separator ; $/ ; end
input_record_separator=(x)
This method is also aliased as rs=
# File lib/facets/more/system.rb, line 111
  def input_record_separator=(x) ; $/=x ; end
line_end_processing()
# File lib/facets/more/system.rb, line 73
  def line_end_processing; $-l ; end
load_path()

load path —————————————————-

# File lib/facets/more/system.rb, line 172
  def load_path; $: ; end
loaded_features()
This method is also aliased as required
# File lib/facets/more/system.rb, line 174
  def loaded_features; $" ; end
ofs()
ofs=(x)
options()

Alias for argv

ors()
ors=(x)
output_field_separator()
This method is also aliased as ofs
# File lib/facets/more/system.rb, line 105
  def output_field_separator ; $-F ; end
output_field_separator=(x)
This method is also aliased as ofs=
# File lib/facets/more/system.rb, line 106
  def output_field_separator=(x) ; $-F=x ; end
output_record_separator()
This method is also aliased as ors
# File lib/facets/more/system.rb, line 100
  def output_record_separator ; $\ ; end
output_record_separator=(x)
This method is also aliased as ors=
# File lib/facets/more/system.rb, line 101
  def output_record_separator=(x) ; $\=x ; end
pid()

Alias for process_id

platform()
# File lib/facets/more/system.rb, line 139
  def platform
    RUBY_PLATFORM
  end
process_id()
 these won't work here

def file; FILE ; end def filepath; File.expand_path(FILE) ; end def lineno; LINE ; end

This method is also aliased as pid
# File lib/facets/more/system.rb, line 54
  def process_id; $$ ; end
program_loop()
# File lib/facets/more/system.rb, line 75
  def program_loop; $-p ; end
program_name()

Execution Environment ————————————-

# File lib/facets/more/system.rb, line 43
  def program_name; $0 ; end
program_name=(x)
# File lib/facets/more/system.rb, line 44
  def program_name=(x); $0=x ; end
release()
# File lib/facets/more/system.rb, line 147
  def release
    RUBY_RELEASE_DATE
  end
required()

Alias for loaded_features

rs()
rs=(x)
rubylibdir()
# File lib/facets/more/system.rb, line 155
  def rubylibdir
    File.join( libdir, 'ruby'  )
  end
rubypath()
# File lib/facets/more/system.rb, line 135
  def rubypath
    File.join( bindir, ruby_install_name )
  end
safe()
# File lib/facets/more/system.rb, line 65
  def safe; $SAFE; end
stderr()
# File lib/facets/more/system.rb, line 88
  def stderr ; $stderr ; end
stderr=(x)
# File lib/facets/more/system.rb, line 89
  def stderr=(x); $stderr=x ; end
stdin()

Input/Ouput Variables ————————————-

# File lib/facets/more/system.rb, line 82
  def stdin; $stdin ; end
stdin=(x)
# File lib/facets/more/system.rb, line 83
  def stdin=(x); $stdin=x ; end
stdout()
# File lib/facets/more/system.rb, line 85
  def stdout ; $stdout ; end
stdout=(x)
# File lib/facets/more/system.rb, line 86
  def stdout=(x); $stdout=x ; end
verbose()
# File lib/facets/more/system.rb, line 67
  def verbose; $VERBOSE; end
verbose=(x)
# File lib/facets/more/system.rb, line 68
  def verbose=(x); $VERBOSE=x; end
version()
# File lib/facets/more/system.rb, line 143
  def version
    RUBY_VERSION
  end