Ruby

  • Ruby gcdlcm() Method

    Ruby gcdlcm() method takes two integer numbers (one as an object and another as a parameter) and returns an array of the GCD and LCM of that two numbers gradually.…

  • Ruby integer? Method

    Ruby integer? method determines whether a specified number is an integer or not. If the specified number is integer returns true otherwise false. This method can check between two data…

  • Ruby lcm() Method

    Ruby lcm() method calculates the LCM of two specified numbers. In mathematic LCM stands for least common multiple which means the lowest multiple divisible by both numbers. This method is only…

  • Ruby odd? Method

    Ruby odd? method is an integer class function that is used to check the specified number whether it is odd or not. Applying this odd method to other data types…

  • Ruby magnitude Method

    Ruby magnitude method is an integer class function that is used to find the absolute value of a specified integer. This function is the same as the Ruby abs() method.…

  • Ruby even? Method

    Ruby even? method is an integer class function that is used to check if an integer number is even or not. Applying this method to any other data type including…

  • Ruby abs() Method

    Ruby abs() method is an integer class function that is used to find the absolute value of an integer number. Applying this method to any other data type raises an…

  • Ruby Matrix transpose() Method

    Ruby transpose() method is a matrix manipulation method and it is used to find the transpose of a given matrix. To find the transpose of a matrix we have to…

  • Ruby clear() Method

    Ruby clear() method is an array function that is used to remove all elements of an array and return an empty array. If the method is applied on an empty…

  • Ruby at() Method

    Ruby at() method is an array function that is used to pop an element from a targeted array also from a specified index. Since the index starts from 0. That…

  • Ruby pop() Method

    Ruby pop() method is an array function that is used to remove array elements from the end. Using the pop() method one or multiple elements. The pop() function also returns…

  • Ruby push() Method

    Ruby push() method is a function that helps to push elements at the end of the array. You can push almost all kind of objects using the push method into…

  • Ruby reverse Method

    Ruby has great support for array manipulations. The reverse method is one of the helpful methods for array in ruby. This function is used to reverse an input array directly.…

  • Ruby Methods

    Methods are code blocks that contain a bunch of statements that are executed only when the method is called. Methods are the same as functions in the procedural and structured…

  • Ruby Tutorial

    Introduction – Ruby Tutorial Ruby is a high-level, interpreted, pure object-oriented programming language used in general-purpose work progress. Ruby was designed and developed by Yukihiro Matsumoto also know as Matz…