View Ruby Call Function By Symbol Images. Below is an example of a class with my assumptions. >$ ruby symbol_methods.rb symbol_methods.rb:33:in `call':
Call Dynamic Method In Ruby Jake Trent from i.imgur.com Symbols are sort of lightweight strings (though they are not strings). Private method `test_value_1' called for value:string (nomethoderror) from what would be the right way to call a private method named as a symbol in this case? Symbols can be used as identifiers.
I want to get the following output:
The next step is to figure out how to call a function which has been sent as a symbol. The function in c is then called and that's how ruby executes methods. Make subclass of a class, their constructor, etc. Namely erlport::erlang::call() function allows to call erlang functions from ruby.
Komentar
Posting Komentar