| Module | System |
| In: |
lib/more/facets/rbsystem.rb
|
| ruby_install_name | -> | ruby |
Miscellaneous ———————————————
# File lib/more/facets/rbsystem.rb, line 134
134: def data; DATA ; end
load path —————————————————-
# File lib/more/facets/rbsystem.rb, line 181
181: def load_path; $: ; end
# File lib/more/facets/rbsystem.rb, line 196
196: def match_platform(arch)
197: cpu, os = arch.split '-', 2
198: cpu, os = nil, cpu if os.nil? # java
199:
200: cpu = case cpu
201: when /i\d86/ then 'x86'
202: else cpu
203: end
204:
205: os = case os
206: when /cygwin/ then [ 'cygwin', nil ]
207: when /darwin(\d+)?/ then [ 'darwin', $1 ]
208: when /freebsd(\d+)/ then [ 'freebsd', $1 ]
209: when /^java$/ then [ 'java', nil ]
210: when /^java([\d.]*)/ then [ 'java', $1 ]
211: when /linux/ then [ 'linux', $1 ]
212: when /mingw32/ then [ 'mingw32', nil ]
213: when /mswin32/ then [ 'mswin32', nil ]
214: when /openbsd(\d+\.\d+)/ then [ 'openbsd', $1 ]
215: when /solaris(\d+\.\d+)/ then [ 'solaris', $1 ]
216: else [ 'unknown', nil ]
217: end
218:
219: [cpu, os].flatten.compact.join("-")
220: end
these won't work here
def file; FILE ; end def filepath; File.expand_path(FILE) ; end def lineno; LINE ; end
# File lib/more/facets/rbsystem.rb, line 63
63: def process_id; $$ ; end
Execution Environment ————————————-
# File lib/more/facets/rbsystem.rb, line 52
52: def program_name; $0 ; end
# File lib/more/facets/rbsystem.rb, line 164
164: def rubylibdir
165: File.join( libdir, 'ruby' )
166: end
# File lib/more/facets/rbsystem.rb, line 144
144: def rubypath
145: File.join( bindir, ruby_install_name )
146: end
Input/Ouput Variables ————————————-
# File lib/more/facets/rbsystem.rb, line 91
91: def stdin; $stdin ; end