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.
- argf
- argv
- child_status
- coding
- coding=
- data
- debug
- default_input
- default_output
- default_output=
- defin
- defout
- defout=
- env
- environment
- error_info
- error_position
- exit_status
- extentions
- fs
- fs=
- input_field_separator
- input_field_separator=
- input_line_number
- input_lineno
- input_record_separator
- input_record_separator=
- line_end_processing
- load_path
- loaded_features
- ofs
- ofs=
- options
- ors
- ors=
- output_field_separator
- output_field_separator=
- output_record_separator
- output_record_separator=
- pid
- platform
- process_id
- program_loop
- program_name
- program_name=
- release
- required
- rs
- rs=
- rubylibdir
- rubypath
- safe
- stderr
- stderr=
- stdin
- stdin=
- stdout
- stdout=
- verbose
- verbose=
- version
Alias for default_input
[ show source ]
# File lib/facets/more/system.rb, line 46 def argv; $* ; end
[ show source ]
# File lib/facets/more/system.rb, line 57 def child_status; $? ; end
[ show source ]
# File lib/facets/more/system.rb, line 70 def coding; $-K ; end
[ show source ]
# File lib/facets/more/system.rb, line 71 def coding=(x); $-K=x ; end
Miscellaneous ———————————————
[ show source ]
# File lib/facets/more/system.rb, line 125 def data; DATA ; end
[ show source ]
# File lib/facets/more/system.rb, line 63 def debug; $DEBUG; end
[ show source ]
# File lib/facets/more/system.rb, line 91 def default_input ; $< ; end
[ show source ]
# File lib/facets/more/system.rb, line 95 def default_output ; $> ; end
[ show source ]
# File lib/facets/more/system.rb, line 96 def default_output=(x); $defout=x ; end
Alias for default_input
Alias for default_output
Alias for default_output=
[ show source ]
# File lib/facets/more/system.rb, line 78 def env; ENV ; end
[ show source ]
# File lib/facets/more/system.rb, line 77 def environment; ENV ; end
[ show source ]
# File lib/facets/more/system.rb, line 60 def error_info; $! ; end
[ show source ]
# File lib/facets/more/system.rb, line 61 def error_position; $@ ; end
Alias for child_status
[ show source ]
# File lib/facets/more/system.rb, line 151 def extentions [ 'rb', DLEXT ] end
Alias for input_field_separator
Alias for input_field_separator=
[ show source ]
# File lib/facets/more/system.rb, line 115 def input_field_separator ; $/ ; end
[ show source ]
# File lib/facets/more/system.rb, line 116 def input_field_separator=(x) ; $/=x ; end
[ show source ]
# File lib/facets/more/system.rb, line 120 def input_line_number ; $. ; end
Alias for input_line_number
[ show source ]
# File lib/facets/more/system.rb, line 110 def input_record_separator ; $/ ; end
[ show source ]
# File lib/facets/more/system.rb, line 111 def input_record_separator=(x) ; $/=x ; end
[ show source ]
# File lib/facets/more/system.rb, line 73 def line_end_processing; $-l ; end
load path —————————————————-
[ show source ]
# File lib/facets/more/system.rb, line 172 def load_path; $: ; end
[ show source ]
# File lib/facets/more/system.rb, line 174 def loaded_features; $" ; end
Alias for output_field_separator
Alias for output_field_separator=
Alias for argv
Alias for output_record_separator
Alias for output_record_separator=
[ show source ]
# File lib/facets/more/system.rb, line 105 def output_field_separator ; $-F ; end
[ show source ]
# File lib/facets/more/system.rb, line 106 def output_field_separator=(x) ; $-F=x ; end
[ show source ]
# File lib/facets/more/system.rb, line 100 def output_record_separator ; $\ ; end
[ show source ]
# File lib/facets/more/system.rb, line 101 def output_record_separator=(x) ; $\=x ; end
Alias for process_id
[ show source ]
# File lib/facets/more/system.rb, line 139 def platform RUBY_PLATFORM end
these won't work here
def file; FILE ; end def filepath; File.expand_path(FILE) ; end def lineno; LINE ; end
[ show source ]
# File lib/facets/more/system.rb, line 54 def process_id; $$ ; end
[ show source ]
# File lib/facets/more/system.rb, line 75 def program_loop; $-p ; end
Execution Environment ————————————-
[ show source ]
# File lib/facets/more/system.rb, line 43 def program_name; $0 ; end
[ show source ]
# File lib/facets/more/system.rb, line 44 def program_name=(x); $0=x ; end
[ show source ]
# File lib/facets/more/system.rb, line 147 def release RUBY_RELEASE_DATE end
Alias for loaded_features
Alias for input_record_separator
Alias for input_record_separator=
[ show source ]
# File lib/facets/more/system.rb, line 155 def rubylibdir File.join( libdir, 'ruby' ) end
[ show source ]
# File lib/facets/more/system.rb, line 135 def rubypath File.join( bindir, ruby_install_name ) end
[ show source ]
# File lib/facets/more/system.rb, line 65 def safe; $SAFE; end
[ show source ]
# File lib/facets/more/system.rb, line 88 def stderr ; $stderr ; end
[ show source ]
# File lib/facets/more/system.rb, line 89 def stderr=(x); $stderr=x ; end
Input/Ouput Variables ————————————-
[ show source ]
# File lib/facets/more/system.rb, line 82 def stdin; $stdin ; end
[ show source ]
# File lib/facets/more/system.rb, line 83 def stdin=(x); $stdin=x ; end
[ show source ]
# File lib/facets/more/system.rb, line 85 def stdout ; $stdout ; end
[ show source ]
# File lib/facets/more/system.rb, line 86 def stdout=(x); $stdout=x ; end
[ show source ]
# File lib/facets/more/system.rb, line 67 def verbose; $VERBOSE; end
[ show source ]
# File lib/facets/more/system.rb, line 68 def verbose=(x); $VERBOSE=x; end
[ show source ]
# File lib/facets/more/system.rb, line 143 def version RUBY_VERSION end