Ruby: Versiyalar orasidagi farq
Kontent oʻchirildi Kontent qoʻshildi
MalikxanBot (munozara | hissa) k Bot: Umumiy tuzatmalar |
+ Teg: Koʻp maʼnoli sahifalarga ishoratlar |
||
Qator 1: | Qator 1: | ||
{{infobox programming language |
|||
[[Fayl:Ruby logo.svg|thumb|right|150px|Ruby dasturlash tilining logosi]] |
|||
| logo = Ruby logo.svg |
|||
| paradigm = [[Multi-paradigmali dasturlash tili|Multi-paradigmali]]: [[Funksional dasturlash|funksional]], [[imperativ dasturlash |imperativ]], [[Obyektga yoʻnaltirilgan dasturlash|obyektga yoʻnaltirilgan]] |
|||
| designer = [[Yukihiro Matsumoto]] |
|||
| developer = |
|||
| implementations = [[Ruby MRI]], [[GraalVM|TruffleRuby]], [[YARV]], [[Rubinius]], [[MagLev]], [[JRuby]], [[MacRuby]], [[RubyMotion]], [[Mruby]], [[IronRuby]] |
|||
| influenced = [[Clojure]], [[CoffeeScript]], [[Crystal]], [[D (dasturlash tili)|D]], [[Elixir]], [[Groovy]], [[Julia]],<ref name="Julia"/> [[Mirah]], [[Nu]],<ref name="Burks"/> [[Ring]],<ref name="Ring and other languages"/> [[Rust]],<ref name="rust"/> [[Swift]]<ref name="lattner2014"/> |
|||
| license = [[Ruby License]] |
|||
| website = {{url|https://www.ruby-lang.org/en/|ruby-lang.org}} |
|||
| wikibooks = Ruby Programming |
|||
| year = {{start date and age|1995}} |
|||
| programming_language = [[C (dasturlash tili)|C]] |
|||
| influenced_by = [[Ada]],<ref name="nov2pro"/> [[BASIC|Basic]],<ref name="confreaks"/> [[C++]],<ref name="nov2pro"/> [[CLU]],<ref name="bini"/> [[Dylan]],<ref name="bini"/> <br>[[Eiffel]],<ref name="nov2pro"/> [[Lisp]],<ref name="bini"/> [[Lua]], [[Perl]],<ref name="bini"/> [[Python]],<ref name="bini"/> [[Smalltalk]]<ref name="bini"/> |
|||
| operating_system = [[Kross-platformali]] |
|||
| file_ext = .rb |
|||
}} |
|||
'''Ruby''' |
'''Ruby''' (<small>talaffuzi:</small> {{IPA|['ru:bɪ]}}; {{tarjima|yoqut}}) koʻplab [[Dasturlash paradigmasi|dasturlash paradigmalarini]] qoʻllab-quvvatlaydigan [[Interpretator|interpretatsiyalanadigan]] [[yuqori pogʻonali dasturlash tili]]dir. [[1990-lar|1990-yillar]] oʻrtalarida [[Yukihiro Matsumoto]] tomonidan yaratilgan. |
||
== Versiyalar |
== Versiyalar xronologiyasi == |
||
{| class="wikitable" |
{| class="wikitable" |
||
|- |
|- |
||
! Versiya |
! Versiya |
||
! Eng |
! Eng oxirgi versiyasi |
||
! Chiqarilgan sana |
|||
! Ilk chiqish sanasi |
|||
! Qoʻllab-quvvatlash fazasining tugashi |
|||
! Xavfsizlikni saqlash fazasi tugashi |
|||
|- |
|- |
||
| {{Versiya |o |1.0}} |
| {{Versiya |o |1.0}} |
||
⚫ | |||
| NA |
|||
| 1996-12-25<ref>{{Veb manbasi|url=http://www.rubyinside.com/the-ruby-communitys-christmas-releases-4118.html|title=The Ruby Community's Christmas Releases|website=www.rubyinside.com}}{{Oʻlikhavola|date=oktabr 2022 |bot=InternetArchiveBot |fix-attempted=yes }}</ref> |
| 1996-12-25<ref>{{Veb manbasi|url=http://www.rubyinside.com/the-ruby-communitys-christmas-releases-4118.html|title=The Ruby Community's Christmas Releases|website=www.rubyinside.com}}{{Oʻlikhavola|date=oktabr 2022 |bot=InternetArchiveBot |fix-attempted=yes }}</ref> |
||
| NA |
|||
| NA |
|||
|- |
|- |
||
| {{Versiya |o |1.8}} |
| {{Versiya |o |1.8}} |
||
| 1.8.7-p375<ref>{{Veb manbasi|url=https://blog.heroku.com/archives/2013/12/5/a_patch_in_time_securing_ruby|title=A Patch in Time: Securing Ruby}}</ref> |
| 1.8.7-p375<ref>{{Veb manbasi|url=https://blog.heroku.com/archives/2013/12/5/a_patch_in_time_securing_ruby|title=A Patch in Time: Securing Ruby}}</ref> |
||
| 2003-08-04<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2003/08/04/ruby-180-released/|title=ruby-1.8.0 released!|website=www.ruby-lang.org}}</ref> |
| 2003-08-04<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2003/08/04/ruby-180-released/|title=ruby-1.8.0 released!|website=www.ruby-lang.org}}</ref> |
||
| 2012-06<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2011/10/06/plans-for-1-8-7/|title=Plans for 1.8.7|website=www.ruby-lang.org}}</ref> |
|||
| 2014-07-01<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2014/07/01/eol-for-1-8-7-and-1-9-2/|title=EOL for Ruby 1.8.7 and 1.9.2|website=www.ruby-lang.org}}</ref> |
|||
|- |
|- |
||
| {{Versiya |o |1.9}} |
| {{Versiya |o |1.9}} |
||
| 1.9.3-p551<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2014/11/13/ruby-1-9-3-p551-is-released/|title=Ruby 1.9.3-p551 Released|website=www.ruby-lang.org}}</ref> |
| 1.9.3-p551<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2014/11/13/ruby-1-9-3-p551-is-released/|title=Ruby 1.9.3-p551 Released|website=www.ruby-lang.org}}</ref> |
||
| 2007-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2007/12/25/ruby-1-9-0-released/|title=Ruby 1.9.0 Released|website=www.ruby-lang.org}}</ref> |
| 2007-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2007/12/25/ruby-1-9-0-released/|title=Ruby 1.9.0 Released|website=www.ruby-lang.org}}</ref> |
||
| 2014-02-23<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2014/01/10/ruby-1-9-3-will-end-on-2015/|title=Support for Ruby version 1.9.3 will end on 23-fevral 2015-yil|website=www.ruby-lang.org}}</ref> |
|||
| 2015-02-23<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2015/02/23/support-for-ruby-1-9-3-has-ended/|title=Support for Ruby 1.9.3 has ended|website=www.ruby-lang.org}}</ref> |
|||
|- |
|- |
||
| {{Versiya |o |2.0}} |
| {{Versiya |o |2.0}} |
||
| 2.0.0-p648<ref name="Ruby 2.0.0-p648 Released">{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2015/12/16/ruby-2-0-0-p648-released/|title=Ruby 2.0.0-p648 Released|website=www.ruby-lang.org}}</ref> |
| 2.0.0-p648<ref name="Ruby 2.0.0-p648 Released">{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2015/12/16/ruby-2-0-0-p648-released/|title=Ruby 2.0.0-p648 Released|website=www.ruby-lang.org}}</ref> |
||
| 2013-02-24<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-is-released/|title=Ruby 2.0.0-p0 is released|website=www.ruby-lang.org}}</ref> |
| 2013-02-24<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-is-released/|title=Ruby 2.0.0-p0 is released|website=www.ruby-lang.org}}</ref> |
||
| 2015-02-24<ref name="Ruby 2.0.0-p648 Released"/> |
|||
| 2016-02-24<ref name="Ruby 2.0.0-p648 Released"/> |
|||
|- |
|- |
||
| {{Versiya |o |2.1}} |
| {{Versiya |o |2.1}} |
||
| 2.1.10<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2016/04/01/ruby-2-1-10-released/|title=Ruby 2.1.10 Released|website=www.ruby-lang.org}}</ref> |
| 2.1.10<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2016/04/01/ruby-2-1-10-released/|title=Ruby 2.1.10 Released|website=www.ruby-lang.org}}</ref> |
||
| 2013-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2013/12/25/ruby-2-1-0-is-released/|title=Ruby 2.1.0 is released|website=www.ruby-lang.org}}</ref> |
| 2013-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2013/12/25/ruby-2-1-0-is-released/|title=Ruby 2.1.0 is released|website=www.ruby-lang.org}}</ref> |
||
| 2016-03-30<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2016/02/24/support-plan-of-ruby-2-0-0-and-2-1/|title=Support plans for Ruby 2.0.0 and Ruby 2.1|website=www.ruby-lang.org}}</ref><ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2016/03/30/ruby-2-1-9-released/|title=Ruby 2.1.9 Released|website=www.ruby-lang.org}}</ref> |
|||
| 2017-03-31<ref>{{Veb manbasi|url=https://bugs.ruby-lang.org/projects/ruby/wiki/ReleaseEngineering|title=ReleaseEngineering - Ruby - Ruby Issue Tracking System|website=bugs.ruby-lang.org}}</ref><ref name="auto">{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2017/04/01/support-of-ruby-2-1-has-ended/|title=Support of Ruby 2.1 has ended|website=www.ruby-lang.org}}</ref> |
|||
|- |
|- |
||
| {{Versiya |o |2.2}} |
| {{Versiya |o |2.2}} |
||
| 2.2.10<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/|title=Ruby 2.2.10 Released|website=www.ruby-lang.org}}</ref> |
| 2.2.10<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/|title=Ruby 2.2.10 Released|website=www.ruby-lang.org}}</ref> |
||
| 2014-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2014/12/25/ruby-2-2-0-released/|title=Ruby 2.2.0 Released|website=www.ruby-lang.org}}</ref> |
| 2014-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2014/12/25/ruby-2-2-0-released/|title=Ruby 2.2.0 Released|website=www.ruby-lang.org}}</ref> |
||
| 2017-03-28<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2017/03/28/ruby-2-2-7-released/|title=Ruby 2.2.7 Released|website=www.ruby-lang.org}}</ref> |
|||
| 2018-03-31<ref name="auto"/> |
|||
|- |
|- |
||
| {{Versiya |o |2.3}} |
| {{Versiya |o |2.3}} |
||
| 2.3.8<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-3-8-released/|title=Ruby 2.3.8 Released|website=www.ruby-lang.org}}</ref> |
| 2.3.8<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-3-8-released/|title=Ruby 2.3.8 Released|website=www.ruby-lang.org}}</ref> |
||
| 2015-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2015/12/25/ruby-2-3-0-released/|title=Ruby 2.3.0 Released|website=www.ruby-lang.org}}</ref> |
| 2015-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2015/12/25/ruby-2-3-0-released/|title=Ruby 2.3.0 Released|website=www.ruby-lang.org}}</ref> |
||
| 2018-06-20<ref name="Support of Ruby 2.2 has ended">{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2018/06/20/support-of-ruby-2-2-has-ended/|title=Support of Ruby 2.2 has ended|website=www.ruby-lang.org}}</ref> |
|||
| 2019-03-31<ref name="Support of Ruby 2.2 has ended"/> |
|||
|- |
|- |
||
| {{Versiya |o |2.4}} |
| {{Versiya |o |2.4}} |
||
Qator 62: | Qator 61: | ||
| access-date = 2020-04-01}}</ref> |
| access-date = 2020-04-01}}</ref> |
||
| 2016-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2016/12/25/ruby-2-4-0-released/|title=Ruby 2.4.0 Released|website=www.ruby-lang.org}}</ref> |
| 2016-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2016/12/25/ruby-2-4-0-released/|title=Ruby 2.4.0 Released|website=www.ruby-lang.org}}</ref> |
||
| 2019-04-01<ref name="Support of Ruby 2.4.6 has ended">{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2019/04/01/ruby-2-4-6-released/|title=Support of Ruby 2.4 has ended|website=www.ruby-lang.org}}</ref> |
|||
| 2020-04-01<ref name="Support of Ruby 2.4.6 has ended" /> |
|||
|- |
|- |
||
| {{Versiya |co |2.5}} |
| {{Versiya |co |2.5}} |
||
Qator 73: | Qator 70: | ||
| access-date = 2020-04-01}}</ref> |
| access-date = 2020-04-01}}</ref> |
||
| 2017-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2017/12/25/ruby-2-5-0-released/|title=Ruby 2.5.0 Released|website=www.ruby-lang.org}}</ref> |
| 2017-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2017/12/25/ruby-2-5-0-released/|title=Ruby 2.5.0 Released|website=www.ruby-lang.org}}</ref> |
||
⚫ | |||
| {{TBA}} |
|||
|- |
|- |
||
| {{Versiya |co |2.6}} |
| {{Versiya |co |2.6}} |
||
Qator 84: | Qator 79: | ||
| access-date = 2020-04-01}}</ref> |
| access-date = 2020-04-01}}</ref> |
||
| 2018-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2018/12/25/ruby-2-6-0-released/|title=Ruby 2.6.0 Released|website=www.ruby-lang.org}}</ref> |
| 2018-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2018/12/25/ruby-2-6-0-released/|title=Ruby 2.6.0 Released|website=www.ruby-lang.org}}</ref> |
||
| {{TBA}} |
|||
| {{TBA}} |
|||
|- |
|- |
||
| {{Versiya |co |2.7}} |
| {{Versiya |co |2.7}} |
||
Qator 95: | Qator 88: | ||
| access-date = 2020-10-02}}</ref> |
| access-date = 2020-10-02}}</ref> |
||
| 2019-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2019/12/25/ruby-2-7-0-released/|title=Ruby 2.7.0 Released|website=www.ruby-lang.org}}</ref> |
| 2019-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2019/12/25/ruby-2-7-0-released/|title=Ruby 2.7.0 Released|website=www.ruby-lang.org}}</ref> |
||
| {{TBA}} |
|||
| {{TBA}} |
|||
|- |
|- |
||
| {{Versiya |c |3.0}} |
| {{Versiya |c |3.0}} |
||
Qator 106: | Qator 97: | ||
| access-date = 2020-12-25}}</ref> |
| access-date = 2020-12-25}}</ref> |
||
| 2020-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/ |title=Ruby 3.0.0 Released|website=www.ruby-lang.org}}</ref> |
| 2020-12-25<ref>{{Veb manbasi|url=https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/ |title=Ruby 3.0.0 Released|website=www.ruby-lang.org}}</ref> |
||
| {{TBA}} |
|||
| {{TBA}} |
|||
|- |
|- |
||
| colspan= |
| colspan="3" | {{Versiya|l|show=111101}} |
||
|} |
|} |
||
== Misollar == |
== Misollar == |
||
Quyidagi misollarni Ruby shellda ishlash mumkin, masalan, [[Interactive Ruby Shell]] yoki faylga saqlanadi hamda buyruq satridan <code>ruby ''<filename>''</code> kodini yozish orqali ishga tushiriladi. |
|||
Klassic [[Hello world]] misoli: |
|||
<syntaxhighlight lang="ruby"> |
<syntaxhighlight lang="ruby"> |
||
puts 'Hello World!' |
puts 'Hello World!' |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
Baʼzi bir asosiy Ruby kodlari: |
|||
<syntaxhighlight lang="ruby"> |
<syntaxhighlight lang="ruby"> |
||
Qator 131: | Qator 114: | ||
# => „ '?acdeinsty“ |
# => „ '?acdeinsty“ |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
<syntaxhighlight lang="ruby"> |
<syntaxhighlight lang="ruby"> |
||
Qator 146: | Qator 128: | ||
puts output_number.to_s + ' is a bigger number.' |
puts output_number.to_s + ' is a bigger number.' |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
== Manbalar == |
== Manbalar == |
||
{{manbalar| |
{{manbalar|refs= |
||
<ref name="Julia">{{ cite web | url = https://docs.julialang.org/en/stable/ | title = Julia 1.0 Documentation: Introduction | access-date = 6 October 2018}}</ref> |
|||
<ref name="Burks">{{ cite web | url = http://programming.nu/about | title = About Nu™ | last = Burks | first = Tim | work = Programming Nu™ | publisher = Neon Design Technology, Inc. | access-date = 2011-07-21}}</ref> |
|||
<ref name="Ring and other languages">{{ cite web | url = http://ring-lang.sourceforge.net/doc1.6/introduction.html#ring-and-other-languages | title = Ring and other languages | author = Ring Team | date = 3 December 2017 | work = ring-lang.net | publisher = ring-lang}}</ref> |
|||
<ref name="rust">{{Cite web |url=https://doc.rust-lang.org/reference/influences.html |title=Influences - The Rust Reference |website=The Rust Reference |access-date=2023-04-18}}</ref> |
|||
<ref name="lattner2014">{{ cite web | url = http://nondot.org/sabre/ | title = Chris Lattner's Homepage | last = Lattner | first = Chris | date = 2014-06-03 | access-date = 2014-06-03 | publisher = Chris Lattner | quote = The Swift language is the product of tireless effort from a team of language experts, documentation gurus, compiler optimization ninjas, and an incredibly important internal dogfooding group who provided feedback to help refine and battle-test ideas. Of course, it also greatly benefited from the experiences hard-won by many other languages in the field, drawing ideas from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and far too many others to list.}}</ref> |
|||
<ref name="nov2pro">{{ cite book | last = Cooper | first = Peter | title = Beginning Ruby: From Novice to Professional | edition = 2nd | series = Beginning from Novice to Professional | year = 2009 | publisher = APress | location = Berkeley | isbn = 978-1-4302-2363-4 | page = 101 | quote = To a lesser extent, Python, LISP, Eiffel, Ada, and C++ have also influenced Ruby.}}</ref> |
|||
<ref name="confreaks">{{ cite web | url = https://confreaks.tv/videos/rubyconf2008-reasons-behind-ruby | title = Reasons behind Ruby | work = Ruby Conference 2008 | publisher = Confreaks TV | access-date = 2019-06-25}}</ref> |
|||
<ref name="bini">{{ cite book | last = Bini | first = Ola | title = Practical JRuby on Rails Web 2.0 Projects: Bringing Ruby on Rails to Java | year = 2007 | publisher = APress | location = Berkeley | isbn = 978-1-59059-881-8 | page = [https://archive.org/details/practicaljrubyon0000bini/page/3 3] | quote = It draws primarily on features from Perl, Smalltalk, Python, Lisp, Dylan, and CLU. | url = https://archive.org/details/practicaljrubyon0000bini/page/3}}</ref> |
|||
}} |
|||
== Adabiyotlar == |
== Adabiyotlar == |
||
Qator 277: | Qator 270: | ||
{{Commons turkum|Ruby programming language}} |
{{Commons turkum|Ruby programming language}} |
||
* {{rasmiy sayt|https://www.ruby-lang.org/en/}} |
* {{rasmiy sayt|https://www.ruby-lang.org/en/}} |
||
* [https://www.ruby-doc.org Ruby |
* [https://www.ruby-doc.org Ruby hujjat sahifasi] |
||
* {{curlie|Computers/Programming/Languages/Ruby|Ruby}} |
* {{curlie|Computers/Programming/Languages/Ruby|Ruby}} |
||
{{chala}} |
{{chala}} |
||
{{Dasturlash tillari}} |
|||
{{Tashqi havolalar}} |
|||
[[Turkum:Ruby| ]] |
[[Turkum:Ruby| ]] |
20-Iyun 2023, 06:48 dagi koʻrinishi
Paradigmalari | Multi-paradigmali: funksional, imperativ, obyektga yoʻnaltirilgan |
---|---|
Muallifi | Yukihiro Matsumoto |
Tuzilgan yili | 1995 |
Operatsion tizim | Kross-platformali |
Litsenziya | Ruby License |
Fayl kengaytmalari | .rb |
Vebsayt | ruby-lang.org |
Bunga asos boʻlgan tillar | |
Ada,[1] Basic,[2] C++,[1] CLU,[3] Dylan,[3] Eiffel,[1] Lisp,[3] Lua, Perl,[3] Python,[3] Smalltalk[3] | |
Buning asosida tuzilgan tillar | |
Clojure, CoffeeScript, Crystal, D, Elixir, Groovy, Julia,[4] Mirah, Nu,[5] Ring,[6] Rust,[7] Swift[8] |
Ruby (talaffuzi: ['ru:bɪ]; tarjimasi „yoqut“) koʻplab dasturlash paradigmalarini qoʻllab-quvvatlaydigan interpretatsiyalanadigan yuqori pogʻonali dasturlash tilidir. 1990-yillar oʻrtalarida Yukihiro Matsumoto tomonidan yaratilgan.
Versiyalar xronologiyasi
Versiya | Eng oxirgi versiyasi | Chiqarilgan sana |
---|---|---|
1.0 | — | 1996-12-25[9] |
1.8 | 1.8.7-p375[10] | 2003-08-04[11] |
1.9 | 1.9.3-p551[12] | 2007-12-25[13] |
2.0 | 2.0.0-p648[14] | 2013-02-24[15] |
2.1 | 2.1.10[16] | 2013-12-25[17] |
2.2 | 2.2.10[18] | 2014-12-25[19] |
2.3 | 2.3.8[20] | 2015-12-25[21] |
2.4 | 2.4.10[22] | 2016-12-25[23] |
2.5 | 2.5.8[24] | 2017-12-25[25] |
2.6 | 2.6.6[26] | 2018-12-25[27] |
2.7 | 2.7.2[28] | 2019-12-25[29] |
3.0 | 3.0.0[30] | 2020-12-25[31] |
Izoh: Eski versiya Eski versiya (qoʻllab-quvvatlanadi) Eng oxirgi versiya Kelgusidagi reliz |
Misollar
puts 'Hello World!'
# 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
- ↑ 1,0 1,1 1,2 Cooper, Peter. Beginning Ruby: From Novice to Professional, 2nd, Beginning from Novice to Professional, Berkeley: APress, 2009 — 101 bet. ISBN 978-1-4302-2363-4. „To a lesser extent, Python, LISP, Eiffel, Ada, and C++ have also influenced Ruby.“
- ↑ „Reasons behind Ruby“. Ruby Conference 2008. Confreaks TV. Qaraldi: 2019-yil 25-iyun.
- ↑ 3,0 3,1 3,2 3,3 3,4 3,5 Bini, Ola. Practical JRuby on Rails Web 2.0 Projects: Bringing Ruby on Rails to Java. Berkeley: APress, 2007 — 3 bet. ISBN 978-1-59059-881-8. „It draws primarily on features from Perl, Smalltalk, Python, Lisp, Dylan, and CLU.“
- ↑ „Julia 1.0 Documentation: Introduction“. Qaraldi: 2018-yil 6-oktyabr.
- ↑ Burks, Tim „About Nu™“. Programming Nu™. Neon Design Technology, Inc.. Qaraldi: 2011-yil 21-iyul.
- ↑ Ring Team. „Ring and other languages“. ring-lang.net. ring-lang (2017-yil 3-dekabr).
- ↑ „Influences - The Rust Reference“. The Rust Reference. Qaraldi: 2023-yil 18-aprel.
- ↑ Lattner, Chris „Chris Lattner's Homepage“. Chris Lattner (2014-yil 3-iyun). — „The Swift language is the product of tireless effort from a team of language experts, documentation gurus, compiler optimization ninjas, and an incredibly important internal dogfooding group who provided feedback to help refine and battle-test ideas. Of course, it also greatly benefited from the experiences hard-won by many other languages in the field, drawing ideas from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and far too many others to list.“. Qaraldi: 2014-yil 3-iyun.
- ↑ „The Ruby Community's Christmas Releases“. www.rubyinside.com. [sayt ishlamaydi]
- ↑ „A Patch in Time: Securing Ruby“.
- ↑ „ruby-1.8.0 released!“. www.ruby-lang.org.
- ↑ „Ruby 1.9.3-p551 Released“. www.ruby-lang.org.
- ↑ „Ruby 1.9.0 Released“. www.ruby-lang.org.
- ↑ „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.
- ↑ „Ruby 2.2.10 Released“. www.ruby-lang.org.
- ↑ „Ruby 2.2.0 Released“. www.ruby-lang.org.
- ↑ „Ruby 2.3.8 Released“. www.ruby-lang.org.
- ↑ „Ruby 2.3.0 Released“. www.ruby-lang.org.
- ↑ „Ruby 2.4.10 Released“. Ruby Programming Language (2020-yil 31-mart). Qaraldi: 2020-yil 1-aprel.
- ↑ „Ruby 2.4.0 Released“. www.ruby-lang.org.
- ↑ „Ruby 2.5.8 Released“. Ruby Programming Language (2020-yil 31-mart). Qaraldi: 2020-yil 1-aprel.
- ↑ „Ruby 2.5.0 Released“. www.ruby-lang.org.
- ↑ „Ruby 2.6.6 Released“. Ruby Programming Language (2020-yil 31-mart). Qaraldi: 2020-yil 1-aprel.
- ↑ „Ruby 2.6.0 Released“. www.ruby-lang.org.
- ↑ „Ruby 2.7.2 Released“. Ruby Programming Language (2020-yil 2-oktyabr). Qaraldi: 2020-yil 2-oktyabr.
- ↑ „Ruby 2.7.0 Released“. www.ruby-lang.org.
- ↑ „Ruby 3.0.0 Released“. Ruby Programming Language (2020-yil 25-dekabr). Qaraldi: 2020-yil 25-dekabr.
- ↑ „Ruby 3.0.0 Released“. www.ruby-lang.org.
Adabiyotlar
- Black, David; Leo, Joseph (15–mart 2019–yil), The Well-Grounded Rubyist (uchinchi-nashr), Manning Publications, 584-bet, ISBN 978-1617295218
{{citation}}
: CS1 maint: date format () - Metz, Sandi (22–avgust 2018–yil), Practical Object-Oriented Design: An Agile Primer Using Ruby (ikkinchi-nashr), Addison-Wesley Professional, 288-bet, ISBN 978-0-13-445647-8
{{citation}}
: CS1 maint: date format () - Cooper, Peter (12–iyul 2016–yil), Beginning Ruby: From Novice to Professional (uchinchi-nashr), Apress, 492-bet, ISBN 978-1484212790
{{citation}}
: CS1 maint: date format () - Carlson, Lucas; Richardson, Leonard (3–aprel 2015–yil), Ruby Cookbook: Recipes for Object-Oriented Scripting (ikkinchi-nashr), O'Reilly Media, 963-bet, ISBN 978-1449373719
{{citation}}
: CS1 maint: date format () - Fulton, Hal; Arko, André (2–mart 2015–yil), The Ruby Way: Solutions and Techniques in Ruby Programming (uchinchi-nashr), Addison-Wesley Professional, 816-bet, ISBN 978-0-321-71463-3
{{citation}}
: CS1 maint: date format () - Thomas, Dave; Fowler, Chad; Hunt, Andy (7–iyul 2013–yil), Programming Ruby 1.9 & 2.0: The Pragmatic Programmers' Guide (toʻrtinchi-nashr), Pragmatic Bookshelf, 888-bet, ISBN 978-1937785499
{{citation}}
: CS1 maint: date format () - McAnally, Jeremy; Arkin, Assaf (28–mart 2009–yil), Ruby in Practice (birinchi-nashr), Manning Publications, 360-bet, ISBN 978-1933988474
{{citation}}
: CS1 maint: date format () - Flanagan, David; Matsumoto, Yukihiro (25–yanvar 2008–yil), The Ruby Programming Language (birinchi-nashr), O'Reilly Media, 446-bet, ISBN 978-0-596-51617-8
{{citation}}
: CS1 maint: date format () - Baird, Kevin (8–iyun 2007–yil), Ruby by Example: Concepts and Code (birinchi-nashr), No Starch Press, 326-bet, ISBN 978-1593271480
{{citation}}
: CS1 maint: date format () - Fitzgerald, Michael (14–may 2007–yil), Learning Ruby (birinchi-nashr), O'Reilly Media, 255-bet, ISBN 978-0-596-52986-4
{{citation}}
: CS1 maint: date format ()
Havolalar
Vikiomborda Ruby haqida turkum mavjud |
- Rasmiy sayti
- Ruby hujjat sahifasi
- Ruby Curlie katalogida
Bu andozani aniqrogʻiga almashtirish kerak. |