To "display the return value of a method in the terminal"
puts method name
Should be written outside the method?
Is there any other way?
Please write your question in detail here.
(Example) I am making a ●● system with PHP (CakePHP).
■■ The following error message occurred while implementing the function.
Corresponding source code
What I tried
Please describe here what you have tried for the problem.Supplementary information (FW/tool version, etc.)
Please provide more detailed information here.
Answer # 1
Yes. That's it.
- ruby - i want to know the reason for implementing it in a class method or module when solving an exercise
- i want to scrape with ruby
- ruby on rails 5 - undefined method `tomorrow'for 00: i would like to know how to solve bigdecimal
- ruby - returns the method further as a method
- ruby on rails - i want to launch rails with a new file
- ruby - the method defined in the model cannot be used
- ruby - binary data conversion method
- ruby - no method error rails
- ruby - i'm using the errors method, but i don't get an error message
- ruby on rails: undefined method ʻuser'for nil: about nomethoderror of nilclass
- ruby - undefined method `save'for nil: nilclass cannot be resolved
- ruby - improvement of nomethoderror undefined method `paginate'
- ruby on rails 5 - can i update with just the update action?
- [ruby] "attr_accessor" i don't understand this method
- ruby on rails - [rails] i want to make it a helper method
- ruby - nomethoderror: undefined method `new'for: uglifier: symbol error on heroku deployment
- ruby on rails - [rails] i want to use each statement in a helper method
- the ruby on rails each method does not repeat well
- ruby on rails - i want to use yield in a method chain
- python - you may need to restart the kernel to use updated packages error
- php - coincheck api authentication doesn't work
- php - i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
- [php] i want to get account information using coincheck api
- the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
- i want to call a child component method from a parent in vuejs
- python 3x - typeerror: 'method' object is not subscriptable
- dart - flutter: the instance member'stars' can't be accessed in an initializer error
- xcode - pod install [!] no `podfile 'found in the project directory