#ruby-on-rails

Following posts match this tag

  1. How to Count the Number of Elements in an Array in Ruby?

    If you are new to Ruby and you are looking for different ways of getting the total number of elements in an array, then this post might be useful for you.
  2. What's the Difference Between Array #count(), #size() and #length() in Ruby?

    Find out about the differences between the Array#count, Array#size and Array#length methods in Ruby. Knowing this will help you decide which one to use in your code.
  3. How to Get Count of Even/Odd Numbers in a Ruby Array?

    In this post you will learn about different ways in which you can get the count for the total number of even or odd numbers in an array of integers in Ruby.
  4. What's the Difference Between Array#size and Array#length in Ruby?

    Find out about the differences between the Array#size and Array#length methods in Ruby. Knowing this will help you decide which one to use in your code.
  5. Does Ruby Have Primitive Data Types?

    Primitive data types are the atomic parts of a programming language, which are not composed of any other data types. They're used in many popular programming languages for performance purposes. Find out if they're used in Ruby or not.
  6. How to Remove All "nil" Values From a Ruby Array?

    There might be times where you have the need to filter out all the nil values from a Ruby array. Find out how you can do that in this post.
  7. What's an Instance Variable in Ruby?

    If you just started learning Ruby and are curious to learn about instance variables (such as what they are, what they do and when to use them), then this post might be helpful for you.
  8. How to Access a Ruby Instance Variable From Outside the Class?

    In Ruby, you cannot directly access class instance variables from outside the class. However, it's still possible to do it. Learn how, in this post.
  9. How to Upcase First Letter and Downcase the Rest in a Ruby String?

    Find out how you can easily make the first letter of a string in Ruby uppercase (or upcase) whilst making all remaining characters lowercase (or downcase).
  10. How to Upcase First Letter and Downcase the Rest in a Ruby Array of Strings?

    If you are looking for a quick and easy way of capitalizing first letter of every element of an array of strings in Ruby, then this post might be useful for you.
  11. How to Convert All Numbers in a Ruby Array to Absolute Form?

    If you are looking for a quick and easy way of changing every number in an array of numbers to their absolute form in Ruby, then this post might be helpful for you.
  12. How to Convert an Array of Strings to Uppercase in Ruby?

    If you are looking for a quick and easy way of making every element of an array of strings in Ruby uppercase, then this post might be helpful for you.