<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8330121722863042731</id><updated>2011-11-27T15:38:32.637-08:00</updated><title type='text'>لغة روبي</title><subtitle type='html'>لغة روبي لغة جديدة نسبيا 1995 وهي كائنية الاتجاه سهلة الترميز , هنا نحاول شرحها ببساطة</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-1534945830247691139</id><published>2009-04-16T06:43:00.000-07:00</published><updated>2009-04-16T07:01:54.388-07:00</updated><title type='text'>التفرع المتعدد - جملة case/when</title><content type='html'>&lt;strong&gt;عندما تتعدد الخيارات طبقا لقيمة متغير معين يبدو عدم الوضوح والإطالة  في كثرة  استخدام جملة التفرع If&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;لذا نستخدم جملة case &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;والتي تكون على النحو التالي &lt;/strong&gt;&lt;br /&gt;&lt;div dir="ltr" align="justify"&gt;&lt;strong&gt;&lt;span style="color:#009900;"&gt;x=0 &lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#009900;"&gt;case x &lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#009900;"&gt;when 0 : puts  "x=0"&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#009900;"&gt;when 1..3 : puts   "x=1"&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#009900;"&gt;when 5..100 : puts  "x=2"&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#009900;"&gt;else puts "لاشئ"&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#009900;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt; &lt;/div&gt;&lt;div dir="rtl" align="justify"&gt;&lt;strong&gt;لكل تفرع نستخدم when وعندما لاتكون القيمة ضمن المدى المعين تتكفل الجملة else  بنتفيذ مانريد ويمكن حصر قيم داخل النطاق &lt;/strong&gt;&lt;/div&gt;&lt;div dir="rtl" align="justify"&gt;&lt;strong&gt;1..3 مثلا &lt;/strong&gt;&lt;/div&gt;&lt;div dir="rtl" align="justify"&gt;&lt;strong&gt;جرب البرنامج وغير قيم X لأاي قيمة تراها  وغير نوع المتغير أيضا تلاحظ مرونة الجملة case.&lt;/strong&gt;&lt;/div&gt;&lt;div dir="rtl" align="justify"&gt;&lt;strong&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div dir="rtl" align="justify"&gt; &lt;/div&gt;&lt;div dir="ltr" align="justify"&gt; &lt;/div&gt;&lt;div dir="ltr" align="justify"&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-1534945830247691139?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/1534945830247691139/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2009/04/casewhen.html#comment-form' title='1 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/1534945830247691139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/1534945830247691139'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2009/04/casewhen.html' title='التفرع المتعدد - جملة case/when'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-4311512811107138678</id><published>2009-04-10T05:45:00.000-07:00</published><updated>2009-04-10T07:38:43.016-07:00</updated><title type='text'>مدى ونطاق المتغيرات</title><content type='html'>&lt;span style="color:#996633;"&gt;نعرف مما سبق ان تعيين متغير هي عملية سهلة في روبي, إذ لايجب أن تهتم بنوع المتغير فستقوم اللغة بمعرفة ذلك&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#996633;"&gt;ويجب تعيين المتغير قبل استخدامه&lt;/span&gt;&lt;br /&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#336666;"&gt;a=21&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#336666;"&gt;b=2.333&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#336666;"&gt;c="strrrrrring."&lt;/span&gt;&lt;/div&gt;&lt;div dir="rtl" align="justify"&gt;&lt;span style="color:#3333ff;"&gt;وبما أن المتغير هو ايضا فصيل فإنه يمكن معرفة نوع المتغير بالدالة kind_of&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#000099;"&gt;x=12.3251&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#000099;"&gt;puts x.kind_of?(Integer)&lt;/span&gt;&lt;/div&gt;&lt;div dir="rtl" align="justify"&gt;كما يكمن معرفة الفصيل الرئيسي للمتغير &lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;puts x.class&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir="rtl" align="justify"&gt;&lt;span style="color:#996633;"&gt;عندما يتم تعريف المتغير داخل دالة أو منهج يسمى متغير محلي وهوغير معروف حارج الحلقة أو المنهج&lt;/span&gt;&lt;/div&gt;&lt;div dir="rtl" align="justify"&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#333399;"&gt;def sum(a,b)&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#333399;"&gt;x=a+b&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#333399;"&gt;return x&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#333399;"&gt;end&lt;br /&gt;puts x,sum(15,14)&lt;/span&gt;&lt;/div&gt;&lt;div dir="rtl" align="justify"&gt;هنا X غير معروف خارج الدالة sum&lt;/div&gt;&lt;div dir="rtl" align="justify"&gt;&lt;/div&gt;&lt;div dir="rtl" align="justify"&gt;&lt;span style="color:#996633;"&gt;وهناك نوع من المتغيرات معروفة لجميع مراحل البرنامج تسمى المتغيرات العالمية ويجب أن تسبق بعلامة $&lt;/span&gt; &lt;/div&gt;&lt;div dir="rtl" align="justify"&gt;مثال&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#000099;"&gt;$name="هذا برنامجى الاول"&lt;/span&gt;&lt;/div&gt;&lt;div dir="rtl" align="justify"&gt;يمكن أيضا تعيين مجموعة من المتغيرات لمجموعة من  القيم &lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#000099;"&gt;a, b, c = 100, 200, 500&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;span style="color:#000099;"&gt;puts a,b,c&lt;/span&gt;&lt;/div&gt;&lt;div dir="rtl" align="justify"&gt;وهناك متغيرات داخل الفصائل سنعرض لها في مكان آخر&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-4311512811107138678?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/4311512811107138678/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2009/04/blog-post_10.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/4311512811107138678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/4311512811107138678'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2009/04/blog-post_10.html' title='مدى ونطاق المتغيرات'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-2993570942549245195</id><published>2009-04-03T06:27:00.000-07:00</published><updated>2009-04-03T06:37:10.145-07:00</updated><title type='text'>التعامل مع التواريخ  Dates</title><content type='html'>&lt;div dir="rtl" style="text-align: right;"&gt;&lt;span style="font-weight: bold;"&gt;توفر روبي فصيل للتعامل مع التواريخ يشمل العديد من الدوال والإجراءات.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div dir="ltr" style="text-align: left;"&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;d=Date.new(2009,3,12)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;puts d.methods&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;puts d.day&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;puts d.month&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;puts d.year&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;puts d.to_s&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;puts d.leap?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div dir="rtl" style="text-align: right;"&gt; &lt;span style="font-weight: bold;"&gt;هناك دوال تعود بنتائج منطقية تنتهي بعلامة "?"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;كما في الدالة الأخيرة التي تبين هل السنة كبيسة أم لا &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-2993570942549245195?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/2993570942549245195/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2009/04/dates.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/2993570942549245195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/2993570942549245195'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2009/04/dates.html' title='التعامل مع التواريخ  Dates'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-325686800836509566</id><published>2009-04-03T05:48:00.000-07:00</published><updated>2009-04-03T06:46:29.453-07:00</updated><title type='text'>معالجة سلاسل الحروف String Class</title><content type='html'>&lt;div dir="rtl" style="text-align: right;"&gt;&lt;span style="font-weight: bold;"&gt;لكل لغة دوال ومناهج وفصائل لمعالجة سلاسل الحروف وفي &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 153);"&gt;روبي&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; هناك فصيل أو كائن كامل للتعامل مع الحروف &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;اسم الفصيل  String&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ويمكن تعريف متغيرات منه بسهولة أو فقط  مساواة المتغير بسلسلة أحرف&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left; font-weight: bold;"&gt;&lt;span style="color: rgb(153, 153, 0);"&gt;s=String.new&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span dir="ltr" style="color: rgb(153, 153, 0);"&gt;s=' stringd in ruby'&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style="font-weight: bold;"&gt;الإجراء new   يولد كائن جديد من الفصيل String &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;لمعرفة جميع المناهج المتعلقة بالفصيل أطبع &lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left; font-weight: bold;"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;puts s.methods&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: right;"&gt;هناك العديد من الدوال والإجراءات التي تقدم خدمات للعمل مع الكائن الجديد&lt;br /&gt;منها&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;split&lt;/span&gt;&lt;br /&gt;تقوم بتقسيم السلسلة إلى سلاسل أصغر متكونة في مصفوفة&lt;br /&gt;&lt;div style="text-align: left;"&gt;puts s.split&lt;br /&gt;&lt;div style="text-align: right;"&gt;يقوم بتقسيم السلسلة إلى سلاسل اصغر نعتمدة على الفاصل الافترضي -الفراغ-&lt;br /&gt;&lt;/div&gt;&lt;div dir="ltr" style="text-align: left;"&gt;puts s.split(',')&lt;br /&gt;&lt;div dir="rtl" style="text-align: right;"&gt;يقوم بتقسيم السلسلة إلى سلاسل اصغر نعتمدة على الفاصل ','&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(153, 102, 51);"&gt;sub&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;الإجراء sub يقوم باستبدال مجموعة أحرف داخل السلسلة بمجوعة أخرى&lt;/span&gt;&lt;br /&gt;&lt;div dir="ltr" style="text-align: left;"&gt;&lt;span style="font-weight: bold;"&gt;puts  s.sub('&lt;span style="color: rgb(51, 51, 255);"&gt;ruby&lt;/span&gt;',&lt;span style="color: rgb(51, 153, 153);"&gt;ruuuuuuuby&lt;/span&gt;'')&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;هذه عينة من الدوال والإحراءات  التي تجعل التعامل من السلاسل سهل للغاية &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div dir="ltr" style="text-align: left;"&gt;&lt;span style="font-weight: bold;"&gt;puts s.empty?&lt;/span&gt;&lt;br /&gt;&lt;div dir="rtl" style="text-align: right;"&gt;&lt;span style="font-weight: bold;"&gt;دالة تفحص هل الساسلة لاتحوى محارف أم لا &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-325686800836509566?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/325686800836509566/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2009/04/blog-post.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/325686800836509566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/325686800836509566'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2009/04/blog-post.html' title='معالجة سلاسل الحروف String Class'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-3565449766091335909</id><published>2009-03-21T07:41:00.000-07:00</published><updated>2009-03-21T08:04:09.392-07:00</updated><title type='text'>البرامج الفرعية- الدوال Functions</title><content type='html'>يتكون البرنامج الفرعي من الكلمة الدليلية def ,نهاية الكتلة  end&lt;br /&gt;&lt;div dir="ltr" align="left"&gt;&lt;span style="color:#006600;"&gt;&lt;strong&gt;def   display&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="left"&gt;&lt;span style="color:#006600;"&gt;&lt;strong&gt;puts  ('Salam Ya Alem')&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="left"&gt;&lt;span style="color:#006600;"&gt;&lt;strong&gt;end&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#006600;"&gt;&lt;strong&gt;disply&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt; &lt;/div&gt;&lt;div dir="rtl" align="right"&gt;ويمكن تمرير متغيرات في الأجراء &lt;/div&gt;&lt;div dir="ltr" align="left"&gt;&lt;span style="color:#006600;"&gt;&lt;strong&gt;def   display(a)&lt;br /&gt;puts(a)&lt;br /&gt;end&lt;br /&gt;disply('Salam Ya Alem')&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" align="left"&gt;&lt;span style="color:#006600;"&gt;&lt;strong&gt;disply   'Salam Ya Alem'&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir="rtl" align="right"&gt;يمكن الاستغناء عن الأقواس &lt;/div&gt;&lt;div dir="rtl" align="right"&gt; &lt;/div&gt;&lt;div dir="rtl" align="right"&gt;يمكن للإجراء للعودة بقيم معينة  أي دالة مع كلمة &lt;span style="color:#3333ff;"&gt;return&lt;/span&gt;&lt;/div&gt;&lt;div dir="rtl" align="right"&gt; &lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;strong&gt;&lt;span style="color:#666600;"&gt;def   doubleNumber(a)&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;strong&gt;&lt;span style="color:#666600;"&gt;&lt;span style="color:#3333ff;"&gt;return&lt;/span&gt; a*a&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;strong&gt;&lt;span style="color:#666600;"&gt;end&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;strong&gt;&lt;span style="color:#666600;"&gt;puts doubleNumber(5)&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div dir="ltr" align="justify"&gt;&lt;strong&gt;&lt;span style="color:#999900;"&gt;&lt;span style="color:#666600;"&gt;puts doubleNumber(5.2)&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div dir="ltr" align="left"&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-3565449766091335909?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/3565449766091335909/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2009/03/functions.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/3565449766091335909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/3565449766091335909'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2009/03/functions.html' title='البرامج الفرعية- الدوال Functions'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-8420935010478777627</id><published>2009-03-07T09:56:00.000-08:00</published><updated>2009-03-21T08:06:49.684-07:00</updated><title type='text'>العمليات المنطقية</title><content type='html'>&lt;div dir="ltr" align="right"&gt;&lt;strong&gt;العمليات المنطقية تكون نتيجتها صح أو خطأ true , false وتستعمل في جمل التحكم المشروط مثل if while unless repeat&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;== فحص المساواة&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&gt; أكبر من &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt; أصغر من &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;&gt; لايساوي &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;=&gt; أضغر من أو تساوي &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;=&lt; أكبر من أو تساوي&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;أمثلة &lt;/strong&gt;&lt;/div&gt;&lt;strong&gt;&lt;/strong&gt;&lt;div dir="ltr" align="left"&gt;&lt;br /&gt;&lt;strong&gt;c=1&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;b=2&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;puts c==b&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;puts c&lt;&gt;b&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;puts a&lt;10&lt;/strong&gt; &lt;/div&gt;&lt;div dir="ltr" align="right"&gt;&lt;br /&gt;&lt;strong&gt;جميع النتائج هنا أما صح أو خطأ وفي التفرعات ينتج تنفيذ جمل حسب التعبير نفسه &lt;/strong&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-8420935010478777627?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/8420935010478777627/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2009/03/blog-post_07.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/8420935010478777627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/8420935010478777627'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2009/03/blog-post_07.html' title='العمليات المنطقية'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-6799562651981573293</id><published>2009-03-06T03:01:00.000-08:00</published><updated>2009-03-06T03:22:45.244-08:00</updated><title type='text'>العمليات الحسابية</title><content type='html'>&lt;div align="right"&gt;كاي لغة أخرى تدعم روبي جميع العمليات الحسابية الأساسية مثل الجمع والطرح والقمسة والضرب بين أنواع البيانات المتشابهة&lt;/div&gt;&lt;div align="right"&gt;مثال&lt;/div&gt;&lt;div align="right"&gt;puts 14-12&lt;/div&gt;&lt;div align="right"&gt;النتيجة هنا عدد صحيح&lt;/div&gt;&lt;div align="right"&gt;puts 14.25/10&lt;/div&gt;&lt;div align="right"&gt;النتيجة هنا عدد حقيقي&lt;/div&gt;&lt;div align="right"&gt; &lt;/div&gt;&lt;div align="right"&gt;puts 16/15  &lt;/div&gt;&lt;div align="right"&gt; النتيجة هنا عدد صحيح&lt;/div&gt;&lt;div align="right"&gt;puts 25.25*36&lt;/div&gt;&lt;div align="right"&gt; &lt;/div&gt;&lt;div align="right"&gt;كما تتوفر مكتبة كاملة  للدوال الرياضية مثل جيب الزاوية واللوغريتم  باستعمال الفصيل &lt;strong&gt;&lt;span style="color:#000099;"&gt;Math&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="right"&gt; &lt;/div&gt;&lt;div align="right"&gt;&lt;span style="color:#660000;"&gt;puts Math.tan(15)&lt;/span&gt;&lt;/div&gt;&lt;div align="right"&gt;&lt;span style="color:#660000;"&gt;puts Math.sin(45&lt;/span&gt;)&lt;/div&gt;&lt;div align="right"&gt;لمشاهدة جميع النهج للفصيل  Math&lt;/div&gt;&lt;div align="right"&gt;أكتب&lt;/div&gt;&lt;div align="right"&gt;&lt;strong&gt;&lt;span style="color:#990000;"&gt;puts Math.methods&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="right"&gt; &lt;/div&gt;&lt;div align="right"&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-6799562651981573293?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/6799562651981573293/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2009/03/blog-post.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/6799562651981573293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/6799562651981573293'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2009/03/blog-post.html' title='العمليات الحسابية'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-2383134964486247031</id><published>2009-02-25T14:39:00.000-08:00</published><updated>2009-02-25T14:58:57.495-08:00</updated><title type='text'>جملة التفرع المشروط if</title><content type='html'>تكون كالتالي&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#33cc00;"&gt;if cond then&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#33cc00;"&gt; st2&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#33cc00;"&gt;elsif cond2 then&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#33cc00;"&gt;  st2&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#33cc00;"&gt;else&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#33cc00;"&gt; st3&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#33cc00;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div align="right"&gt;تتكون الحلقة من الجمل التالية&lt;/div&gt;&lt;div align="right"&gt;&lt;strong&gt;&lt;span style="color:#6600cc;"&gt; If -elsif-else  end&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div align="right"&gt;يمكن ترك  جسم الحلقة  ويمكن اغفال then عند نهاية السطر إذا كانت الجملة في اكثر من سطر&lt;/div&gt;&lt;div align="right"&gt;لفحص الشرط يجب استخدام علامتي يساوي == كما في لغة سي &lt;/div&gt;&lt;div align="right"&gt;مثال&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#993399;"&gt;x=1&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#993399;"&gt;if x==1   &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#993399;"&gt; puts "1"&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#993399;"&gt;elsif x==2 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#993399;"&gt; puts "2"&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#993399;"&gt;else&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#993399;"&gt;puts "3"&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#993399;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div align="right"&gt;&lt;span style="color:#993399;"&gt;غير قيمة x شاهد تنفيذ البرنامج&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-2383134964486247031?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/2383134964486247031/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2009/02/if.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/2383134964486247031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/2383134964486247031'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2009/02/if.html' title='جملة التفرع المشروط if'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-8954061246007556715</id><published>2009-02-16T06:18:00.000-08:00</published><updated>2009-02-16T06:25:48.644-08:00</updated><title type='text'>حلقة التكرار while</title><content type='html'>تكون حلقة التكرار while على الشكل التالي&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#000099;"&gt;while cond&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#000099;"&gt;sents&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#000099;"&gt;end&lt;/span&gt;&lt;/div&gt;يتم تكرار الحلقة حتى تحقق صحة الشرط  cond&lt;br /&gt;مثال&lt;br /&gt;&lt;div align="left"&gt;i&lt;span style="color:#000099;"&gt;=-10&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#000099;"&gt;while i&lt;0&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#000099;"&gt;puts i&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#000099;"&gt;i=i+1&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#000099;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-8954061246007556715?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/8954061246007556715/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2009/02/while.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/8954061246007556715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/8954061246007556715'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2009/02/while.html' title='حلقة التكرار while'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-8871553730985335138</id><published>2009-02-13T06:18:00.000-08:00</published><updated>2009-02-17T06:38:06.920-08:00</updated><title type='text'>حلقة التكرار for</title><content type='html'>حلقة for  في لغة على الشكل التالي&lt;br /&gt;&lt;div align="left" style="text-align: left;"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;for i in a..b&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="left" style="text-align: left;"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;    sents  &lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="left" style="text-align: left;"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;end&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="right"&gt;ويتم تكرار الجمل في الحلقة من الحد الأدنى إلى الحد الأعلى&lt;/div&gt;&lt;div align="right"&gt;يمكن ان تكون مصفوفة متكونة من عناصر مختلفة &lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#000099;"&gt;&lt;img src="http://4.bp.blogspot.com/_4lHHPZFczQk/SZrLec-SIwI/AAAAAAAAAE8/75trZB-s5bY/s320/forloop.JPG" style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 180px; height: 246px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5303775235216122626" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-8871553730985335138?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/8871553730985335138/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2009/02/for.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/8871553730985335138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/8871553730985335138'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2009/02/for.html' title='حلقة التكرار for'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_4lHHPZFczQk/SZrLec-SIwI/AAAAAAAAAE8/75trZB-s5bY/s72-c/forloop.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-8519023327092356643</id><published>2009-02-04T05:31:00.000-08:00</published><updated>2009-03-21T08:10:00.061-07:00</updated><title type='text'>المصفوفات</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4lHHPZFczQk/SZL0DAvH1JI/AAAAAAAAAE0/-b67qm6z8BA/s1600-h/rubyarr.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5301568043942925458" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 258px; CURSOR: hand; HEIGHT: 202px" alt="" src="http://4.bp.blogspot.com/_4lHHPZFczQk/SZL0DAvH1JI/AAAAAAAAAE0/-b67qm6z8BA/s320/rubyarr.JPG" border="0" /&gt;&lt;/a&gt; &lt;div style="TEXT-ALIGN: right" align="right"&gt;ا&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold"&gt;لمصفوفة في روبي مجموعة من العناصر لايلزم ان تكون نفس النوع &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: right" align="left"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,0,153)"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: right" align="left"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,0,153)"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: right" align="right"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold"&gt;تبدأ الفهرسة من الصفر إلى &lt;/span&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: right" align="right"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold"&gt;يمكن استعمال الفهرس -1 و-2 للاشارة إلى العناصر بداية نهاية المصفوفة...&lt;/span&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: right" align="right"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold"&gt;يمكن دمج المصفوفات بعلامة الجمع &lt;/span&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: right" align="right"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold"&gt;إضافة عنصر للمصفوفة  &gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: left" align="right"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: right" align="justify"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,0,153)"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: right" align="right"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold"&gt;لمعرفة المناهج للمصفوفة &lt;/span&gt;&lt;/div&gt;&lt;div dir="ltr" style="TEXT-ALIGN: right" align="right"&gt;&lt;span style="color:#330099;"&gt;&lt;strong&gt;puts c.methods&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold; COLOR: rgb(51,0,153)"&gt;&lt;div style="TEXT-ALIGN: right" align="justify"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-8519023327092356643?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/8519023327092356643/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2009/02/blog-post.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/8519023327092356643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/8519023327092356643'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2009/02/blog-post.html' title='المصفوفات'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_4lHHPZFczQk/SZL0DAvH1JI/AAAAAAAAAE0/-b67qm6z8BA/s72-c/rubyarr.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-4799395163111382849</id><published>2008-08-30T17:32:00.000-07:00</published><updated>2008-08-30T17:41:40.118-07:00</updated><title type='text'>الأرقام الحقيقة Float</title><content type='html'>&lt;strong&gt;تدعم روبي الارقام الحقيقة أو أرقام ذات الفاصلة العائمة كما تسمى &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;ويتكون الرقم من رقم صحيح إضافة إلى رقم كسري مثل&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1.&lt;span style="color:#3333ff;"&gt;2&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;strong&gt;211.2362&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;تنتمي الأرقام  الحقيقة إلى الفصيل Float&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;أكتب الرقم مع نقطة وclass&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;لتعرف نوع الكائن المستخدم&lt;/strong&gt;&lt;br /&gt;&lt;div align="right"&gt;&lt;strong&gt;يمكن استعمال العمليات الحسابية المعروفة على الارقام كأي لغة أخرى&lt;/strong&gt;&lt;/div&gt;&lt;div align="right"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;12.2+1.0&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="right"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;122/151&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-4799395163111382849?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/4799395163111382849/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2008/08/float.html#comment-form' title='1 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/4799395163111382849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/4799395163111382849'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2008/08/float.html' title='الأرقام الحقيقة Float'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-8205668711244252676</id><published>2008-08-28T08:12:00.000-07:00</published><updated>2008-08-28T08:28:33.365-07:00</updated><title type='text'>الأرقام الصحيحة Fixnum</title><content type='html'>الارقام الصحيحة هي الارقام بلا فواصل مثلا&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff6600;"&gt;121&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff6600;"&gt;1214511&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff6600;"&gt;15121441&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;يمثل النوع &lt;strong&gt;&lt;span style="color:#3333ff;"&gt;fixnum&lt;/span&gt;&lt;/strong&gt; النوع الصحيح للأرقام في اللغة  وهي كائنات وفصائل قائمة بذاتها&lt;br /&gt;جرب التالي&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;123+145&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;200-211&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;522/121&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;25*62&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc33cc;"&gt;(4*26).to_s&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;السطر الاخير يحول نتيجة الضرب إلى سلسلة أحرف&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-8205668711244252676?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/8205668711244252676/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2008/08/fixnum.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/8205668711244252676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/8205668711244252676'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2008/08/fixnum.html' title='الأرقام الصحيحة Fixnum'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-6977646896008175237</id><published>2008-08-25T07:28:00.000-07:00</published><updated>2008-08-25T07:34:56.505-07:00</updated><title type='text'>استعمال  SciTE لتحرير البرامج</title><content type='html'>يأتي مع حزمة روبي  محرر نصوص لمجموعة من لغات البرمجة منها روبي&lt;br /&gt;أدخل البرنامج ثم نفذه وشاهد النتائج على الجانب الايمن&lt;br /&gt;كما يمكن تحميله من هنا&lt;br /&gt;&lt;a href="http://www.scintilla.org/"&gt;http://www.scintilla.org/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-6977646896008175237?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/6977646896008175237/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2008/08/scite.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/6977646896008175237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/6977646896008175237'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2008/08/scite.html' title='استعمال  SciTE لتحرير البرامج'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-7501400496853169443</id><published>2008-06-24T09:16:00.000-07:00</published><updated>2008-06-24T09:29:20.741-07:00</updated><title type='text'>أنواع البيانات data types</title><content type='html'>لمن يعرف اللغات الأخرى تتكون انواع البيانات من مجموعة من البيانات التي تتعامل معها اللغة إضافة إلى بيانات متكونة من قبل المبرمج&lt;br /&gt;وفي روبي أنواع البانات ايضا كائنات اساسية&lt;br /&gt;&lt;ul&gt;&lt;li&gt;الارقام وتسمى faxnum&lt;/li&gt;&lt;li&gt;السلاسل sring&lt;/li&gt;&lt;li&gt;المنطقية boolean&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;الارقام تشمل الارقام الصحيحة والحقيقة &lt;/p&gt;&lt;p&gt;أمثلة&lt;/p&gt;&lt;p align="left"&gt;100+100&lt;/p&gt;&lt;p align="left"&gt;"100"+100&lt;/p&gt;&lt;p align="left"&gt; &lt;/p&gt;&lt;p align="left"&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-7501400496853169443?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/7501400496853169443/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2008/06/data-types.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/7501400496853169443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/7501400496853169443'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2008/06/data-types.html' title='أنواع البيانات data types'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-7026798151868299595</id><published>2008-06-21T15:24:00.000-07:00</published><updated>2008-06-21T15:57:42.272-07:00</updated><title type='text'>البرنامج الأول</title><content type='html'>بعد التنصيب الذي لن أدخل فيه ,يمكن استعمال بيئة التشغيل أو الموقع المصاحب &lt;a href="http://tryruby.hobix.com/"&gt;هنا&lt;/a&gt; حيث يمكن تجريب برامجك على الخط.&lt;br /&gt;أكتب اي سلسلة احرف وضعها بين قوسين&lt;br /&gt;"ruby first" واضغط مفتاح الادخال وهذه النتيجة&lt;br /&gt;&lt;div align="left"&gt;&lt;span style="color:#006600;"&gt;"ruby first"&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="color:#000000;"&gt;هذه النتيجة التى نفذها المفسر&lt;/span&gt;&lt;/div&gt;&lt;div align="right"&gt;ولان روبي لغة كائنية بالكامل فقد قام المفسر يتنفيذ النهج الافتراضي للفصيل Class String &lt;/div&gt;&lt;div align="right"&gt;لمعرفة نوع الفصيل أكتب&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#666600;"&gt;class.class&lt;/span&gt;&lt;/div&gt;&lt;div align="right"&gt;لمعرفة جميع النهج للفصيل أكتب&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="color:#666600;"&gt;class.method&lt;/span&gt;&lt;/div&gt;&lt;div align="right"&gt;&lt;span style="color:#666600;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="justify"&gt;سيكتب المفسر جميع عناصر الفصيل ..&lt;/div&gt;&lt;div align="justify"&gt;جرب الفصائل التالية &lt;/div&gt;&lt;div align="left"&gt;"rubylang"&lt;/div&gt;&lt;div align="left"&gt;10&lt;/div&gt;&lt;div align="left"&gt;10.01&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-7026798151868299595?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/7026798151868299595/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2008/06/blog-post_21.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/7026798151868299595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/7026798151868299595'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2008/06/blog-post_21.html' title='البرنامج الأول'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-2216602779938108259</id><published>2008-06-12T09:21:00.000-07:00</published><updated>2008-06-12T09:31:24.854-07:00</updated><title type='text'>التحميل والتنصيب</title><content type='html'>يمكن تحميل روبي من هنا&lt;br /&gt;&lt;a href="http://www.ruby-lang.org/en/downloads/"&gt;http://www.ruby-lang.org/en/downloads/&lt;/a&gt;&lt;br /&gt;يمكنك تجريب بعض البرامج البسيطة في هذا الموقع&lt;br /&gt;&lt;a href="http://tryruby.hobix.com/"&gt;http://tryruby.hobix.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-2216602779938108259?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/2216602779938108259/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2008/06/blog-post.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/2216602779938108259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/2216602779938108259'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2008/06/blog-post.html' title='التحميل والتنصيب'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8330121722863042731.post-378809452332026860</id><published>2008-05-02T04:23:00.000-07:00</published><updated>2009-02-17T07:00:16.364-08:00</updated><title type='text'>ماهي لغة روبي؟</title><content type='html'>السلام عليكم&lt;br /&gt;قلم ماتز الياباني بتطوير لغة روبي1995  وانتشرت اللغة سريعا وتقدمت على لغات كثيرة في استعمال ملقمات الشبكة لخدمة طلبات المتصفحين .&lt;div&gt;لغة كائنية كليا مجانية مفتوحة المصدر تعمل على كل أنظمة التشغيل ,سهلة التعلم , بسيطة الترميز.&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8330121722863042731-378809452332026860?l=ruby-arabic.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ruby-arabic.blogspot.com/feeds/378809452332026860/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://ruby-arabic.blogspot.com/2008/05/blog-post.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/378809452332026860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8330121722863042731/posts/default/378809452332026860'/><link rel='alternate' type='text/html' href='http://ruby-arabic.blogspot.com/2008/05/blog-post.html' title='ماهي لغة روبي؟'/><author><name>عياد الغبرة</name><uri>http://www.blogger.com/profile/11464064999440808191</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
