زبان برنامه نویسی Ruby | ثابت‌های محیطی

سیده آمین ارمان

کاربر نگاه دانلود
کاربر نگاه دانلود
عضویت
2016/05/10
ارسالی ها
1,730
امتیاز واکنش
20,744
امتیاز
795
محل سکونت
البرز
جدول زیر، تمام ثابت های از پیش تعریف شده زبان برنامه نویسی روبی را بصورت فهرست وار نشان می دهد.

تذکرTRUE ، FALSE و NIL به جهت سازگاری با نسخه های قدیمی می باشند. استفاده از true ، false و nil ارجح می باشد.



Constant Name Description
TRUE Synonym for true.
FALSE Synonym for false.
NIL Synonym for nil.
ARGF An object providing access to virtual concatenation of files passed as command-line arguments or standard input if there are no command-line arguments. A synonym for $<.
ARGV An array containing the command-line arguments passed to the program. A synonym for $*.
DATA An input stream for reading the lines of code following the __END__ directive. Not defined if __END__ isn't present in code.
ENV A hash-like object containing the program's environment variables. ENV can be handled as a hash.
RUBY_PLATFORM A string indicating the platform of the Ruby interpreter.
RUBY_RELEASE_DATE A string indicating the release date of the Ruby interpreter
RUBY_VERSION A string indicating the version of the Ruby interpreter.
STDERR Standard error output stream. Default value of $stderr.
STDIN Standard input stream. Default value of $stdin.
STDOUT Standard output stream. Default value of $stdout.
TOPLEVEL_BINDING A Binding object at Ruby's top level.
 

برخی موضوعات مشابه

بالا