[Ruby] I want to put an array in a variable. I want to convert to an array

Part 1

admin = []
admin = admin.push(Admin.get_invoice_viewer)

Part 2

[Admin.get_invoice_viewer]

If there are others, please teach me. ..

Recommended Posts

[Ruby] I want to put an array in a variable. I want to convert to an array
I want to ForEach an array with a Lambda expression in Java
[Java] I want to convert a byte array to a hexadecimal number
How to change a string in an array to a number in Ruby
I want to create a Parquet file even in Ruby
[Ruby] How to batch convert strings in an array to numbers
Notation to put a variable in a string
I want to convert an array to Active Record Relation with Rails
I want to send an email in Java.
I want to use arrow notation in Ruby
[Ruby] I want to do a method jump!
I want to get the value in Ruby
I want to convert characters ...
How to check if an instance variable is defined in a Ruby class
I want to use a little icon in Rails
Multiplication in a Ruby array
I want to define a function in Rails Console
Rails6 I want to make an array of values with a check box
How to convert a file to a byte array in Java
I want to click a GoogleMap pin in RSpec
[Ruby] I want to make an array from a character string with the split method. And vice versa.
I want to find a relative path in a situation using Path
Convert a Java byte array to a string in hexadecimal notation
I want to perform high-speed prime factorization in Ruby (ABC177E)
How to retrieve the hash value in an array in Ruby
Even in Java, I want to output true with a == 1 && a == 2 && a == 3
I tried to convert a string to a LocalDate type in Java
Convert an array that may be null to a stream
I wrote a code to convert numbers to romaji in TDD
Sorting hashes in a Ruby array
I want to convert InputStream to String
[Ruby] When you want to assign the result obtained by conditional branching to a variable and put it in the argument
[Ruby] How to count even or odd numbers in an array
I want to add a browsing function with ruby on rails
I tried to write code like a type declaration in Ruby
Cast an array of Strings to a List of Integers in Java
I want to change the value of Attribute in Selenium of Ruby
I tried a calendar problem in Ruby
I want to write a nice build.gradle
I want to make an ios.android app
Convert numbers to Roman numerals in Ruby
I want to write a unit test!
Convert an array of strings to numbers
I want to use @Autowired in Servlet
I tried to create an API to get data from a spreadsheet in Ruby (with service account)
[Ruby] I want to output only the odd-numbered characters in the character string
[Rails] I want to send data of different models in a form
I want to select multiple items with a custom layout in Dialog
Even in Java, I want to output true with a == 1 && a == 2 && a == 3 (PowerMockito edition)
[Ruby] I want to display posted items in order of newest date
I want to display a PDF in Chinese (Korean) with thin reports
I thought about the best way to create a ValueObject in Ruby
I want to display an error message when registering in the database
"Teacher, I want to implement a login function in Spring" ① Hello World
Convert to a tag to URL string in Rails
I want to sort by tab delimited by ruby
Convert a string to a character-by-character array with swift
I want to pass APP_HOME to logback in Gradle
I wanted to make (a == 1 && a == 2 && a == 3) true in Java
I want to simply write a repeating string
I made a Ruby extension library in C