About 123,000 results
Open links in new tab
  1. Class: Array (Ruby 2.7.0)

    Multiple array arguments can be supplied and all occurrences of any element in those supplied arrays that match the receiver will be removed from the returned array.

  2. class Array - Documentation for Ruby 4.1

    An Array object is an ordered, integer-indexed collection of objects, called elements; the object represents an array data structure. An element may be any object (even another array); elements …

  3. Ruby | Arrays - GeeksforGeeks

    Jun 16, 2023 · In Ruby, numbers, strings, etc all are primitive types but arrays are of objects type i.e arrays are the collection of ordered, integer-indexed objects which can be store number, integer, …

  4. Arrays | Ruby for Beginners

    Arrays can be used in a lot of different, and useful ways, but the most basic one is to retrieve a certain element by the way of referring to its position: Please get me the element at position 1!

  5. Ruby - Arrays - Online Tutorials Library

    Ruby arrays are ordered, integer-indexed collections of any object. Each element in an array is associated with and referred to by an index.

  6. class Array - RDoc Documentation - Ruby doc

    With integer argument n, a new array that is the concatenation of n copies of self. With string argument field_separator, a new string that is equivalent to join(field_separator). pack: Packs the elements into …

  7. Ruby Arrays - GitHub Pages

    6 days ago · If you want to wrap objects in an Array, you can use a special Kernel module Array method (that starts with a capital letter and looks like a class). This special method converts its one argument …

  8. Ruby Array Methods: A Comprehensive Guide - RailsCarma

    In this article, we’ll dive deep into Ruby array methods, exploring their syntax, use cases, and best practices. We’ll cover creation and basic access, modification techniques, iteration and …

  9. Master Ruby Arrays: The Top Methods You Should Know

    Nov 6, 2024 · In this epic tutorial, you‘ll gain array mastery by learning over 20 must-know methods with clear examples. We‘ll compare mutable vs immutable techniques, chain together efficient solutions, …

  10. Array | Ruby API (v3.3)

    a = Array. new (3) {|index| "Element #{index}" } a # => ["Element 0", "Element 1", "Element 2"]