1. Rubyã®æ©ãæ¹ 2012.04.28 ãã³ãã³è¶ ã¨ã³ã¸ãã¢ãã¼ãã£ã³ã° æ¥æ¬Rubyã®ä¼ / æ ªå¼ä¼ç¤¾ä¸è æ«»äºéç 1 12å¹´5æ16æ¥æ°´ææ¥ 1
1. Rubyã®æ©ãæ¹ 2012.04.28 ãã³ãã³è¶ ã¨ã³ã¸ãã¢ãã¼ãã£ã³ã° æ¥æ¬Rubyã®ä¼ / æ ªå¼ä¼ç¤¾ä¸è æ«»äºéç 1 12å¹´5æ16æ¥æ°´ææ¥ 1
éçºã®å¹çã大ããåä¸ãã¦ãããgem Pryãããã«ä½¿ãããªãããã®ä¾¿å©ãªã³ãã³ã19åãã¾ã¨ãã¦ã¿ã¾ãããæ¨æºã®ã³ãã³ãããã£ããç解ãã¦Pryã®ä½¿ãããªããç®æãã¾ãï¼ (04/16 20:55) ãªã¹ã¹ã¡ã®è¨äºã追å ãã®2 ð ãªã¹ã¹ã¡è¨äºPry ã®ç°¡æçãªã³ãã³ãã¾ã¨ã Pryã®è¨å®ãã¡ã¤ã«ããé¢é£Gemã®ç°¡æçãªã³ãã³ããã¾ã¨ãã¦ããã¦ããè¨äºããã®è¨äºãã²ã¨ã¨ããèªãã ãã¨ã«ãè¨å®ããããã¨æãããï¼ Rails4 ä»ã®ã¨ããæå¼·ãªãããã°ãã¼ã«é éçºããã¹ãç°å¢ã§ä½¿ã£ã¦ããGemfileã®ç´¹ä»ãpryã«ã¤ãã¦ãããªãä¸å¯§ã«æ¸ããã¦ãã¾ãï¼ Ruby 2.1ã®åºæ¬æ§æï¼åºæ¬ææ³ã¾ã¨ãï¼Pryã®ä½¿ãæ¹ ãªã¼ãã³ã½ã¼ã¹ã®ãªãã¸ã§ã¯ãæåããã°ã©ãã³ã°è¨èªãRubyãã®ææ³ãã¼ãããå¦ã¶ããã®å ¥éé£è¼ã ð (1) helphelpã¯ã³ãã³ãã®ä¸è¦§ã¨è±èªã§ã®èª¬æã表示ãã¦ãã
$Id: index.html,v 1.6 2004/07/20 23:08:12 aamine Exp $ ãã®ææ¸ã¯æ¸ç±ãRubyã½ã¼ã¹ã³ã¼ãå®å ¨è§£èª¬ãã®HTMLçã§ãã ãã ãåæ ¡æ®µéã®å稿ããã¼ã¹ã«ãã¦ããããã æ¸ç±ã§ã¯ä¿®æ£ããã¦ããééããæ®ã£ã¦ããå ´åãããã¾ãã äºã御äºæ¿ãã ããã 2004-02-16 ã«å ¨ç« ãå ¬éãã¾ããã ç®æ¬¡ ã¾ããã åºç« 第 1 é¨ããªãã¸ã§ã¯ãã 第 1 ç« ãRubyè¨èªãããã ã 第 2 ç« ããªãã¸ã§ã¯ãã 第 3 ç« ãååã¨åå表ã 第 4 ç« ãã¯ã©ã¹ã 第 5 ç« ãã¬ã¼ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ã 第 6 ç« ãå¤æ°ã¨å®æ°ã 第 7 ç« ãã»ãã¥ãªãã£ã 第 2 é¨ãæ§æ解æã 第 8 ç« ãRubyè¨èªã®è©³ç´°ã 第 9 ç« ãéç¿yaccã 第 10 ç« ããã¼ãµã 第 11 ç« ãç¶æ ä»ãã¹ãã£ãã 第 12 ç« ãæ§ææ¨ã®æ§ç¯ã 第 3 é¨ãè©ä¾¡ã 第
æ°ç±³ã¨ç§åéã®ããç¼ã ãåºèº«ç¨ã®ç§åéãè²·ãã¾ããã1å°¾250åã§ã 3æã«ãããã¦ãç§åéã®ããã«é ãå³éãé¤æ²¹ã§èª¿å³ãã¦1æéã»ã©æ¼¬ãè¾¼ã¿ãã°ãªã«ã§ç¼ãã¾ãã ç§åéã®ããç¼ã ããã®ãè¦å³ãç¨ãããã¤ã«ãã«èª¿å³ãããã¯ã»ã«ãªãå³ããã§ã è¶ãããªæ°ç±³ã¨ä¸ç·ã« èªå®¶è£½ãæ¼¬ç© åâ¦
人ã«ã¯ææ¦ãå¿ è¦ã§ããææ¦ã¨ã¯ãèªåã®å¿å°ã®ããå ´æããä¸æ©ã§ããã¨ã§ãããè¦çãã¨ããªããã¨ã§ãããããããããå¦ã³ã«ã¤ãªããã人ãæé·ããã¾ããææ¦ããªããã°ã人ã¯å¦ã³ããªããæé·ããã¾ãããèªä½ãã¼ãã¼ãã®ç´ æ´ããã¯ã人ã«ææ¦ã®å ´ãä¸ãã¦ãããã¨ããã§ãããããã£ãæå³ã§ãèªä½ãã¼ãã¼ããããã®ãªãã§ãã MiniAxe ã¯ç¹å¥ãªåå¨ã§ãã ã¾ããç®ã«ã¤ãã¨ããã¨ããã°ããã®ã³ã³ãã¯ããã§ããããæ ¼åé å 36 ãã¼ã¨ããä»æ§ã¯ããµã ã 40% ãã¼ãã¼ããã¤ãã£ã¦ããç§ã§ãæ¸æããµã¤ãºã§ããä»ã¾ã§èªåããªããã§ãããã¼é åããä¸æ©ãè¸ã¿åºãã¦ãæ°ããªè©¦è¡é¯èª¤ãããªãã¦ã¯ããã¾ããã æ«å®çãªãã¼ããã ã§ã¯ããã®ããã«ãã¦ãã¾ãããã¾ã ã¾ã 磨ãã¦ããå¿ è¦ãããããã§ãã ã¾ããã¯ãã ä»ãã®é£æ度ãé«ãã¨ããã®ãç¹å¾´ã§ããèªä½ãã¼ãã¼ããããã§å®çªã® Pro Micro ã¯æ¡ç¨ããã¦
(追è¨ï¼2013-08-16) æ¬è¨äºã®ããªãã¢ãå«ãï¼ï¼ã®ããªãã¢ã以ä¸ã®è¨äºã«ã¾ã¨ãã¾ããã ç¥ã£ã¦å¾ããï¼ï¼ï¼ã®Rubyã®ããªãã¢ãªè¨æ³ ã¡ãã£ã¨ããªãã¢ã ãã©ãç¥ã£ã¦ããã¨æå¤ã¨ä¾¿å©ãªRubyã®è¨æ³ã21åæ¾ã£ã¦ã¿ãã(Ruby1.9éå®)ã åãªãå ¨é¨ç¥ã£ã¦ããããããªããã©.. 1. åçç¶æ¿ Rubyã®ã¯ã©ã¹ç¶æ¿ã§ã¯ < è¨å·ã®å³è¾ºã«ã¯ã©ã¹å®æ°ã ãã§ãªãã¯ã©ã¹ãè¿ãå¼ãæ¸ãããã class Male def laugh; 'Ha ha ha!' end end class Female def laugh; 'Fu fu fu..' end end class Me < [Male, Female][rand 2] end Me.superclass # => Female Me.new.laugh # => 'Fu fu fu..' def io(env=:develop
Document Data Structure in MongoDB Express MongoDB lets you easily store structured and unstructured data in a flexible and dynamic database schema. It supports CRUD operations on complex data objects using JSON as the main data type. Its an open source solution so it may not be as robust or well supported as commercial management tools. However it is easy to deploy and works well for most use cas
ããã³ã¾ãã¯ãRuby ã«é¢ããæè¡è¨äºã¯ãã¡ããã®ãã¨ãRubyist ã¸ã®ã¤ã³ã¿ãã¥ã¼ãã¨ãã»ã¤ããã®ä»ããå±ãããã¦ã§ãéèªã§ãã Rubyist Magazine ã«ã¤ã㦠ãRubyist Magazineããç¥ãã¦ããã³ã¾ãã¯ãæ¥æ¬ Ruby ã®ä¼ã®æå¿ã«ãã Rubyist ã® Rubyist ã«ãããRubyist ã¨ããã§ãªã人ã®ããã®ã¦ã§ãéèªã§ãã ææ°å· Rubyist Magazine 0058 å· ããã¯ãã³ãã¼ Rubyist Magazine 0058 å· RubyKaigi 2018 ç´åç¹éå· Rubyist Magazine 0057 å· RubyKaigi 2017 ç´åç¹éå· Rubyist Magazine 0056 å· Rubyist Magazine 0055 å· Rubyist Magazine 0054 å· æ±äº¬ Ruby ä¼è° 11 ç´
ããã³ã¾ãã¯ãRuby ã«é¢ããæè¡è¨äºã¯ãã¡ããã®ãã¨ãRubyist ã¸ã®ã¤ã³ã¿ãã¥ã¼ãã¨ãã»ã¤ããã®ä»ããå±ãããã¦ã§ãéèªã§ãã Rubyist Magazine ã«ã¤ã㦠ãRubyist Magazineããç¥ãã¦ããã³ã¾ãã¯ãæ¥æ¬ Ruby ã®ä¼ã®æå¿ã«ãã Rubyist ã® Rubyist ã«ãããRubyist ã¨ããã§ãªã人ã®ããã®ã¦ã§ãéèªã§ãã ææ°å· Rubyist Magazine 0058 å· ããã¯ãã³ãã¼ Rubyist Magazine 0058 å· RubyKaigi 2018 ç´åç¹éå· Rubyist Magazine 0057 å· RubyKaigi 2017 ç´åç¹éå· Rubyist Magazine 0056 å· Rubyist Magazine 0055 å· Rubyist Magazine 0054 å· æ±äº¬ Ruby ä¼è° 11 ç´
å æ¥ Ruby ã®åµå§è ã¾ã¤ãã¨ããã²ãæ°ã Heroku ã® Ruby ãã¼ãã¢ã¼ããã¯ãã¨ãªã£ããã¨ãä¼ãããã (/.J è¨äº) ãHeroku ãæãã ã»ã¼ã«ã¹ãã©ã¼ã¹ã¯ Ruby ã³ãã¥ããã£ã®æ¯æ´ã宣è¨ãã¦ããã®ã ãããã®ä¸ç°ã¨ã㦠Ruby éçºè ã§ãããªãã ã®ã¶ããæ°ãã»ã¼ã«ã¹ãã©ã¼ã¹æ¥æ¬æ³äººã«æ£ç¤¾å¡ã¨ãã¦å ¥ç¤¾ããããã (Rails Hub æ å ±å±) ã ãªãã æ°ã¯ Ruby ã¸ã®ã³ãããæ°ã«ããã¦ã¾ã¤ãã¨æ°ãè¶ ãã¦ããã¨ãè¨ããã¦ããéçºè ãèå³æ·±ãã®ãããªãã æ°ã¯ã»ã¼ã«ã¹ãã©ã¼ã¹ã§è£½åéçºçã«é¢ããããã§ã¯ãªããRuby ã®éçºãæ¥åã«ãªãã¨ããç¹ããããã¾ã§éã Ruby ã®éçºã«å°½åãããã¨ãä»äºã§ãã£ã¦ãå æ¬æ¨ã®æ¥æ¬æ³äººãªãã£ã¹ã¸åºç¤¾ãããã¨ã¨ããä½ãå ±åãããã¨ãªã©ã¨ãã義åã¯ãä»ã®ã¨ãããªãããã§ããã¨ã®ãã¨ã§ãçµæ¸çã«ãååã«å ±ãããã¨ããã
ããã°ãä¸è¨ã«ç§»è»¢ãã¾ããããã¶ã¤ã³å¤æ´ã«ãã移転å ã§ã¯è¨äºãä¸å±¤èªã¿ããããªã£ã¦ãã¾ãã®ã§ããããããã°ç§»åããé¡ãè´ãã¾ãã ç¥ã£ã¦å¾ãã21ã®Rubyã®ããªãã¢ãªè¨æ³: melborne.github.com - ã¡ãã£ã¨ããªãã¢ã ãã© ç¥ã£ã¦ããã¨æå¤ã¨ä¾¿å©ãªRubyã®è¨æ³ã 21åæ¾ã£ã¦ã¿ãã(Ruby1.9éå®) åãªãå ¨é¨ç¥ã£ã¦ããããããªããã©.. 1. åçç¶æ¿ Rubyã®ã¯ã©ã¹ç¶æ¿ã§ã¯ < è¨å·ã®å³è¾ºã« ã¯ã©ã¹å®æ°ã ãã§ãªãã¯ã©ã¹ãè¿ãå¼ãæ¸ããã class Male def laugh; 'Ha ha ha!' end end class Female def laugh; 'Fu fu fu..' end end class Me < [Male, Female][rand 2] end Me.superclass # => Female Me.new.laugh
ããã³ã¾ãã¯ãRuby ã«é¢ããæè¡è¨äºã¯ãã¡ããã®ãã¨ãRubyist ã¸ã®ã¤ã³ã¿ãã¥ã¼ãã¨ãã»ã¤ããã®ä»ããå±ãããã¦ã§ãéèªã§ãã Rubyist Magazine ã«ã¤ã㦠ãRubyist Magazineããç¥ãã¦ããã³ã¾ãã¯ãæ¥æ¬ Ruby ã®ä¼ã®æå¿ã«ãã Rubyist ã® Rubyist ã«ãããRubyist ã¨ããã§ãªã人ã®ããã®ã¦ã§ãéèªã§ãã ææ°å· Rubyist Magazine 0058 å· ããã¯ãã³ãã¼ Rubyist Magazine 0058 å· RubyKaigi 2018 ç´åç¹éå· Rubyist Magazine 0057 å· RubyKaigi 2017 ç´åç¹éå· Rubyist Magazine 0056 å· Rubyist Magazine 0055 å· Rubyist Magazine 0054 å· æ±äº¬ Ruby ä¼è° 11 ç´
ããã¾ãéè¦ãªããããªã®ã§ã¡ã¤ã³ããã°ããå¼ã£è¶ããmockã«ã¤ãã¦ã 14.1 Test Doubles Test Doubleã¯ä»ã®ãªãã¸ã§ã¯ãã®ä»£ããããããªãã¸ã§ã¯ã Spec::Mocks double("double") stub("stub") mock("mock") ãããã®ã¡ã½ããã¯å ¨é¨åã㧠Spec::Mocks::Mock ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ãä½æãããå¼æ°ã®æåå㯠option æ±ãã ããã©ã failure message ã®ä¸ã§ä½¿ãããã®ã§å ¥ãã¦ãããæ¹ãããã 14.2 Method Stubs Method Stub ã¯ããããã決ãã¦ãããresponseãè¿ãã¡ã½ããã®ãã¨ã describe Statement do it "uses the customer's name in the header" do customer = double
ãªã¼ãã«ã¸ã¼ãå®é£ã¬ã é£ã¹ç©ã®é¼»å¡©å¡©(æªã ã«éããã®ããª) ãªã¼ãã«ã¸ã¼ãã¨ããã«ã¬ã¼ããåç¥ã ããã é½å ã«ããããªããªã¼å°éã®ã«ã¬ã¼å±ã§ã ãã±å¼ãªã©ã§å¤§äººæ°ã®æ¬æ ¼æ¬§é¢¨ã«ã¬ã¼ã楽ãããããã ãããªã ãããªããªãã¶ã¤ã¤ã¼ é½å ã®å¥´ãã¯ãããªè¯ãã¢ã³é£ã£ã¦ãã®ã 許ããããâ¦â¦â¦
#JavaScriptãRubyã®ä¸ã« Rubyä¸ã§JavaScriptãåä½ããã¾ãã ##使ç¨ä¾ï¼RSpecã§Underscore.jsããã¹ãããã var stooges = [{name : 'curly', age : 25}, {name : 'moe', age : 21}, {name : 'larry', age : 23}]; var youngest = _(stooges).chain() .sortBy(function(stooge){ return stooge.age; }) .map(function(stooge){ return stooge.name + ' is ' + stooge.age; }) .first() .value(); => "moe is 21" ä¸è¨ã®æ§ã«JavaScriptã§æ¸ããã使ç¨ä¾ãã以ä¸ã®æ§ã«RSpecã§ãã¹ãåº
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}