Ruby (talaffuzi: ; tarjimasi „yoqut“) koʻplab dasturlash paradigmalarini qoʻllab-quvvatlaydigan interpretatsiyalanadigan yuqori pogʻonali dasturlash tilidir.
1990-yillar oʻrtalarida Yukihiro Matsumoto tomonidan yaratilgan.
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, Basic, C++, CLU, Dylan, Eiffel, Lisp, Lua, Perl, Python, Smalltalk | |
Buning asosida tuzilgan tillar | |
Clojure, CoffeeScript, Crystal, D, Elixir, Groovy, Julia, Mirah, Nu, Ring, Rust, Swift |
Versiya | Eng oxirgi versiyasi | Chiqarilgan sana |
---|---|---|
1.0 | — | 1996-12-25 |
1.8 | 1.8.7-p375 | 2003-08-04 |
1.9 | 1.9.3-p551 | 2007-12-25 |
2.0 | 2.0.0-p648 | 2013-02-24 |
2.1 | 2.1.10 | 2013-12-25 |
2.2 | 2.2.10 | 2014-12-25 |
2.3 | 2.3.8 | 2015-12-25 |
2.4 | 2.4.10 | 2016-12-25 |
2.5 | 2.5.8 | 2017-12-25 |
2.6 | 2.6.6 | 2018-12-25 |
2.7 | 2.7.2 | 2019-12-25 |
3.0 | 3.0.0 | 2020-12-25 |
Izoh: Eski versiya Eski versiya (qoʻllab-quvvatlanadi) Eng oxirgi versiya Kelgusidagi reliz |
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.'
{{citation}}
: CS1 maint: date format (){{citation}}
: CS1 maint: date format (){{citation}}
: CS1 maint: date format (){{citation}}
: CS1 maint: date format (){{citation}}
: CS1 maint: date format (){{citation}}
: CS1 maint: date format (){{citation}}
: CS1 maint: date format (){{citation}}
: CS1 maint: date format (){{citation}}
: CS1 maint: date format (){{citation}}
: CS1 maint: date format ()Vikiomborda Ruby haqida turkum mavjud |
Bu andozani aniqrogʻiga almashtirish kerak. |
This article uses material from the Wikipedia O‘zbek article Ruby, which is released under the Creative Commons Attribution-ShareAlike 3.0 license ("CC BY-SA 3.0"); additional terms may apply (view authors). Matndan CC BY-SA 4.0 litsenziyasi boʻyicha foydalanish mumkin (agar aksi koʻrsatilmagan boʻlsa). Images, videos and audio are available under their respective licenses.
®Wikipedia is a registered trademark of the Wiki Foundation, Inc. Wiki O‘zbek (DUHOCTRUNGQUOC.VN) is an independent company and has no affiliation with Wiki Foundation.