{"id":22734,"date":"2023-02-28T06:50:23","date_gmt":"2023-02-28T06:50:23","guid":{"rendered":"https:\/\/www.booksofall.com\/?post_type=product&#038;p=22734"},"modified":"2023-02-28T06:52:37","modified_gmt":"2023-02-28T06:52:37","slug":"the-little-book-of-ruby","status":"publish","type":"product","link":"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/","title":{"rendered":"The Little Book Of Ruby"},"content":{"rendered":"<h4>What Is Ruby?<\/h4>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Ruby_(programming_language)\">Ruby<\/a> is a <a href=\"https:\/\/www.techopedia.com\/definition\/30026\/cross-platform-development#:~:text=Cross%2Dplatform%20development%20is%20the,for%20one%20application%20or%20product.\">cross-platform<\/a>, <a href=\"https:\/\/www.techtarget.com\/searchapparchitecture\/definition\/object-oriented-programming-OOP#:~:text=Object%2Doriented%20programming%20(OOP)%20is%20a%20computer%20programming%20model,has%20unique%20attributes%20and%20behavior.\">object-oriented<\/a>, interpreted language that has many features in common with other \u2018scripting\u2019 languages such as <a href=\"https:\/\/www.perl.org\/\">Perl<\/a> and <a href=\"https:\/\/www.python.org\/\">Python<\/a> as well as with \u2018pure\u2019 object-oriented languages such as <a href=\"https:\/\/en.wikipedia.org\/wiki\/Smalltalk\">Smalltalk<\/a>. Its syntax looks deceptively simple at first sight. In fact, Ruby is a good deal more complex than it may appear. The Ruby language was created by Yukihiro Matsumoto (commonly known as \u2018Matz\u2019) and it was first released in 1995.<\/p>\n<h4>What Is Rails?<\/h4>\n<p>Rails is a web development framework (a collection of code libraries and software tools) that uses Ruby as its programming language. It is popularly known as \u2018Ruby On Rails\u2019. While Rails is an impressive framework, it is not the be-all and end-all of Ruby. Indeed, if you decide to leap right into Rails development without first mastering Ruby, you may find that you end up with an application that you don\u2019t even understand. The Little Book of Ruby is not about Rails; it concentrates entirely on the Ruby programming language. However, if you intend to program Rails applications, this book will give you the grounding you need in order to understand Rails code and write your own custom Ruby On Rails applications.<\/p>\n<h4>Installing Ruby<\/h4>\n<p>Before doing anything else, you need to install Ruby on your computer. If you are using Mac OS X (or some versions of Linux) you may already have Ruby installed. At any rate, you can download the latest version of Ruby from www.ruby-lang.org. Be sure to download the binaries (not merely the source code). For Windows users, the easiest way to set up Ruby on your system is by using the Ruby Installer for Windows available from: http:\/\/rubyinstaller.org\/<\/p>\n<h4>Ruby 1 or Ruby 2?<\/h4>\n<p>At the time of writing, the latest version of Ruby is Ruby 2.x where \u2018x\u2019 represents the minor version numbers used differentiate specific updates to Ruby 2 (e.g. Ruby 2.1.6, Ruby 2.2.2 and so on). Many programmers are still using earlier versions of Ruby, however, such as Ruby 1.8 or 1.9. In most cases, the syntax and behaviour of Ruby 1.x (from at least version 1.8) and Ruby 2.x are identical. That is not to say that there are no important differences but at this stage they need not concern us. In most cases the code described in this book will run identically in Ruby 1.8, 1.9 and 2.x.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><iframe style=\"width: 100%; height: 700px; border: none;\" src=\"https:\/\/online.visual-paradigm.com\/share\/book\/littlebookofruby-19tts5h1i7?enforceShowPromotionBar=true&amp;p=1\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"featured_media":22738,"template":"","meta":{"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":""},"product_brand":[],"product_cat":[371],"product_tag":[],"class_list":{"0":"post-22734","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-ruby","8":"first","9":"instock","10":"shipping-taxable","11":"product-type-simple"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The Little Book Of Ruby - BooksOfAll Portuguese<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/\" \/>\n<meta property=\"og:locale\" content=\"pt_PT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Little Book Of Ruby - BooksOfAll Portuguese\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/\" \/>\n<meta property=\"og:site_name\" content=\"BooksOfAll Portuguese\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-28T06:52:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/img_63fda2e8894c6.png\" \/><meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/img_63fda2e8894c6.png\" \/>\n\t<meta property=\"og:image:width\" content=\"494\" \/>\n\t<meta property=\"og:image:height\" content=\"615\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/img_63fda2e8894c6.png\" \/>\n<meta name=\"twitter:label1\" content=\"Tempo estimado de leitura\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/\",\"url\":\"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/\",\"name\":\"The Little Book Of Ruby - BooksOfAll Portuguese\",\"isPartOf\":{\"@id\":\"https:\/\/www.booksofall.com\/pt\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/img_63fda2e8894c6.png\",\"datePublished\":\"2023-02-28T06:50:23+00:00\",\"dateModified\":\"2023-02-28T06:52:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/#breadcrumb\"},\"inLanguage\":\"pt-PT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@id\":\"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/#primaryimage\",\"url\":\"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/img_63fda2e8894c6.png\",\"contentUrl\":\"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/img_63fda2e8894c6.png\",\"width\":\"494\",\"height\":\"615\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.booksofall.com\/pt\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Categories\",\"item\":\"https:\/\/www.booksofall.com\/pt\/categories\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"The Little Book Of Ruby\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.booksofall.com\/pt\/#website\",\"url\":\"https:\/\/www.booksofall.com\/pt\/\",\"name\":\"BooksOfAll Portuguese\",\"description\":\"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.\",\"publisher\":{\"@id\":\"https:\/\/www.booksofall.com\/pt\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.booksofall.com\/pt\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-PT\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.booksofall.com\/pt\/#organization\",\"name\":\"BooksOfAll Portuguese\",\"url\":\"https:\/\/www.booksofall.com\/pt\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@id\":\"https:\/\/www.booksofall.com\/pt\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2022\/06\/booksofall-logo-2.png\",\"contentUrl\":\"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2022\/06\/booksofall-logo-2.png\",\"width\":166,\"height\":30,\"caption\":\"BooksOfAll Portuguese\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/pt\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The Little Book Of Ruby - BooksOfAll Portuguese","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/","og_locale":"pt_PT","og_type":"article","og_title":"The Little Book Of Ruby - BooksOfAll Portuguese","og_url":"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/","og_site_name":"BooksOfAll Portuguese","article_modified_time":"2023-02-28T06:52:37+00:00","og_image":[{"url":"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/img_63fda2e8894c6.png","type":"","width":"","height":""},{"width":494,"height":615,"url":"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/img_63fda2e8894c6.png","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/img_63fda2e8894c6.png","twitter_misc":{"Tempo estimado de leitura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/","url":"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/","name":"The Little Book Of Ruby - BooksOfAll Portuguese","isPartOf":{"@id":"https:\/\/www.booksofall.com\/pt\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/#primaryimage"},"image":{"@id":"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/#primaryimage"},"thumbnailUrl":"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/img_63fda2e8894c6.png","datePublished":"2023-02-28T06:50:23+00:00","dateModified":"2023-02-28T06:52:37+00:00","breadcrumb":{"@id":"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/#breadcrumb"},"inLanguage":"pt-PT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/"]}]},{"@type":"ImageObject","inLanguage":"pt-PT","@id":"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/#primaryimage","url":"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/img_63fda2e8894c6.png","contentUrl":"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/img_63fda2e8894c6.png","width":"494","height":"615"},{"@type":"BreadcrumbList","@id":"https:\/\/www.booksofall.com\/pt\/the-little-book-of-ruby\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.booksofall.com\/pt\/"},{"@type":"ListItem","position":2,"name":"Categories","item":"https:\/\/www.booksofall.com\/pt\/categories\/"},{"@type":"ListItem","position":3,"name":"The Little Book Of Ruby"}]},{"@type":"WebSite","@id":"https:\/\/www.booksofall.com\/pt\/#website","url":"https:\/\/www.booksofall.com\/pt\/","name":"BooksOfAll Portuguese","description":"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.","publisher":{"@id":"https:\/\/www.booksofall.com\/pt\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.booksofall.com\/pt\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-PT"},{"@type":"Organization","@id":"https:\/\/www.booksofall.com\/pt\/#organization","name":"BooksOfAll Portuguese","url":"https:\/\/www.booksofall.com\/pt\/","logo":{"@type":"ImageObject","inLanguage":"pt-PT","@id":"https:\/\/www.booksofall.com\/pt\/#\/schema\/logo\/image\/","url":"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2022\/06\/booksofall-logo-2.png","contentUrl":"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2022\/06\/booksofall-logo-2.png","width":166,"height":30,"caption":"BooksOfAll Portuguese"},"image":{"@id":"https:\/\/www.booksofall.com\/pt\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.booksofall.com\/pt\/wp-json\/wp\/v2\/product\/22734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.booksofall.com\/pt\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.booksofall.com\/pt\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.booksofall.com\/pt\/wp-json\/wp\/v2\/media\/22738"}],"wp:attachment":[{"href":"https:\/\/www.booksofall.com\/pt\/wp-json\/wp\/v2\/media?parent=22734"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.booksofall.com\/pt\/wp-json\/wp\/v2\/product_brand?post=22734"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.booksofall.com\/pt\/wp-json\/wp\/v2\/product_cat?post=22734"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.booksofall.com\/pt\/wp-json\/wp\/v2\/product_tag?post=22734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}