Ruby
Jump to navigation
Jump to search
Ruby interpretatsiyalangan, yuqori darajadagi, umumiy maqsaddagi dasturlash tilidir. Ushbu dasturlash tili 1990-yillarning oʻrtalarida yaponiyalik dasturchi Yukihiro „Matz“ Matsumoto tomonidan yaratilgan.
Versiyalar jadvali[tahrir]
| Versiya | Eng soʻnggi versiyasi | Ilk chiqish sanasi | Qoʻllab-quvvatlash fazasining tugashi | Xavfsizlikni saqlash fazasi tugashi |
|---|---|---|---|---|
| 1.0 | NA | 1996-12-25[1] | NA | NA |
| 1.8 | 1.8.7-p375[2] | 2003-08-04[3] | 2012-06[4] | 2014-07-01[5] |
| 1.9 | 1.9.3-p551[6] | 2007-12-25[7] | 2014-02-23[8] | 2015-02-23[9] |
| 2.0 | 2.0.0-p648[10] | 2013-02-24[11] | 2015-02-24[10] | 2016-02-24[10] |
| 2.1 | 2.1.10[12] | 2013-12-25[13] | 2016-03-30[14][15] | 2017-03-31[16][17] |
| 2.2 | 2.2.10[18] | 2014-12-25[19] | 2017-03-28[20] | 2018-03-31[17] |
| 2.3 | 2.3.8[21] | 2015-12-25[22] | 2018-06-20[23] | 2019-03-31[23] |
| 2.4 | 2.4.10[24] | 2016-12-25[25] | 2019-04-01[26] | 2020-04-01[26] |
| 2.5 | 2.5.8[27] | 2017-12-25[28] | TBA | TBA |
| 2.6 | 2.6.6[29] | 2018-12-25[30] | TBA | TBA |
| 2.7 | 2.7.2[31] | 2019-12-25[32] | TBA | TBA |
| 3.0 | 3.0.0[33] | 2020-12-25[34] | TBA | TBA |
<div style="float: left; margin-left: 1em; Expression error: Unrecognized punctuation character "[".">Legend: <div style="float: left; margin-left: 1em; Expression error: Unrecognized punctuation character "[".">Expression error: Unrecognized punctuation character "[".<div style="float: left; margin-left: 1em; Expression error: Unrecognized punctuation character "[".">Older version, still maintained<div style="float: left; margin-left: 1em; Expression error: Unrecognized punctuation character "[".">Soʻnggi versiyasi<div style="float: left; margin-left: 1em; Expression error: Unrecognized punctuation character "[".">Latest preview version<div style="float: left; margin-left: 1em; Expression error: Unrecognized punctuation character "[".">Kelajakdagi chiqishi
| ||||
Misollar[tahrir]
Quyidagi misollarni Ruby shellda ishlash mumkin, masalan, Interactive Ruby Shell yoki faylga saqlanadi hamda buyruq satridan ruby <filename> kodini yozish orqali ishga tushiriladi.
Klassic Hello world misoli:
puts 'Hello World!'
Baʼzi bir asosiy Ruby kodlari:
# Everything, including a literal, is an object, so this works:
−199.abs # => 199
'ice is niceʼ.length # => 11
'ruby is cool.'.index('u') # => 1
„Nice Day Isnʼt It?“.downcase.split('').uniq.sort.join
# => „ '?acdeinsty“
print 'Please type name >'
name = gets.chomp
puts „Hello #{name}.“
puts 'Give me a number'
number = gets.chomp
puts number.to_i
output_number = number.to_i + 1
puts output_number.to_s + ' is a bigger number.'
Manbalar[tahrir]
- ↑ The Ruby Community's Christmas Releases. www.rubyinside.com.
- ↑ A Patch in Time: Securing Ruby.
- ↑ ruby-1.8.0 released!. www.ruby-lang.org.
- ↑ Plans for 1.8.7. www.ruby-lang.org.
- ↑ EOL for Ruby 1.8.7 and 1.9.2. www.ruby-lang.org.
- ↑ Ruby 1.9.3-p551 Released. www.ruby-lang.org.
- ↑ Ruby 1.9.0 Released. www.ruby-lang.org.
- ↑ Support for Ruby version 1.9.3 will end on February 23, 2015. www.ruby-lang.org.
- ↑ Support for Ruby 1.9.3 has ended. www.ruby-lang.org.
- ↑ 10,0 10,1 10,2 Ruby 2.0.0-p648 Released. www.ruby-lang.org.
- ↑ Ruby 2.0.0-p0 is released. www.ruby-lang.org.
- ↑ Ruby 2.1.10 Released. www.ruby-lang.org.
- ↑ Ruby 2.1.0 is released. www.ruby-lang.org.
- ↑ Support plans for Ruby 2.0.0 and Ruby 2.1. www.ruby-lang.org.
- ↑ Ruby 2.1.9 Released. www.ruby-lang.org.
- ↑ ReleaseEngineering - Ruby - Ruby Issue Tracking System. bugs.ruby-lang.org.
- ↑ 17,0 17,1 Support of Ruby 2.1 has ended. www.ruby-lang.org.
- ↑ Ruby 2.2.10 Released. www.ruby-lang.org.
- ↑ Ruby 2.2.0 Released. www.ruby-lang.org.
- ↑ Ruby 2.2.7 Released. www.ruby-lang.org.
- ↑ Ruby 2.3.8 Released. www.ruby-lang.org.
- ↑ Ruby 2.3.0 Released. www.ruby-lang.org.
- ↑ 23,0 23,1 Support of Ruby 2.2 has ended. www.ruby-lang.org.
- ↑ Ruby 2.4.10 Released. Ruby Programming Language (2020-03-31).
- ↑ Ruby 2.4.0 Released. www.ruby-lang.org.
- ↑ 26,0 26,1 Support of Ruby 2.4 has ended. www.ruby-lang.org.
- ↑ Ruby 2.5.8 Released. Ruby Programming Language (2020-03-31).
- ↑ Ruby 2.5.0 Released. www.ruby-lang.org.
- ↑ Ruby 2.6.6 Released. Ruby Programming Language (2020-03-31).
- ↑ Ruby 2.6.0 Released. www.ruby-lang.org.
- ↑ Ruby 2.7.2 Released. Ruby Programming Language (2020-10-02).
- ↑ Ruby 2.7.0 Released. www.ruby-lang.org.
- ↑ Ruby 3.0.0 Released. Ruby Programming Language (2020-12-25).
- ↑ Ruby 3.0.0 Released. www.ruby-lang.org.
Adabiyotlar[tahrir]
- Black, David; Leo, Joseph (March 15, 2019), The Well-Grounded Rubyist (uchinchi nashri), Manning Publications, p. 584, ISBN 978-1617295218
- Metz, Sandi (August 22, 2018), Practical Object-Oriented Design: An Agile Primer Using Ruby (ikkinchi nashri), Addison-Wesley Professional, p. 288, ISBN 978-0-13-445647-8, https://www.informit.com/store/practical-object-oriented-design-an-agile-primer-using-9780134456478
- Cooper, Peter (July 12, 2016), Beginning Ruby: From Novice to Professional (uchinchi nashri), Apress, p. 492, ISBN 978-1484212790
- Carlson, Lucas; Richardson, Leonard (April 3, 2015), Ruby Cookbook: Recipes for Object-Oriented Scripting (ikkinchi nashri), O'Reilly Media, p. 963, ISBN 978-1449373719, http://oreilly.com/catalog/9781449373719
- Fulton, Hal; Arko, André (March 2, 2015), The Ruby Way: Solutions and Techniques in Ruby Programming (uchinchi nashri), Addison-Wesley Professional, p. 816, ISBN 978-0-321-71463-3, https://www.informit.com/store/ruby-way-solutions-and-techniques-in-ruby-programming-9780321714633
- Thomas, Dave; Fowler, Chad; Hunt, Andy (July 7, 2013), Programming Ruby 1.9 & 2.0: The Pragmatic Programmers' Guide (toʻrtinchi nashri), Pragmatic Bookshelf, p. 888, ISBN 978-1937785499
- McAnally, Jeremy; Arkin, Assaf (March 28, 2009), Ruby in Practice (birinchi nashri), Manning Publications, p. 360, ISBN 978-1933988474
- Flanagan, David; Matsumoto, Yukihiro (January 25, 2008), The Ruby Programming Language (birinchi nashri), O'Reilly Media, p. 446, ISBN 978-0-596-51617-8, https://archive.org/details/rubyprogrammingl00davi/page/446
- Baird, Kevin (June 8, 2007), Ruby by Example: Concepts and Code (birinchi nashri), No Starch Press, p. 326, ISBN 978-1593271480, https://nostarch.com/rubyex
- Fitzgerald, Michael (May 14, 2007), Learning Ruby (birinchi nashri), O'Reilly Media, p. 255, ISBN 978-0-596-52986-4, https://archive.org/details/learningruby0000fitz/page/255
Havolalar[tahrir]
| Vikiomborda Ruby haqida turkum mavjud |
- Rasmiy sayti
- Ruby hujjati
- Ruby Curlie katalogida
![]() | Bu andozani aniqrogʻiga almashtirish kerak. |
