I am looking for a way to iterate over registers of binary code @macro. I know that you can use them in the following form:
class Post
include DataMapper::Resource
property :title, String
end
and you can generate arguments that represent registers separated by lumps, as if you were making an array section as follows:
create_method_with_args :foo, :a, :b, :c, String
generates: foo(a, b, c)and returns (String) the return value of create_method_with_args, but I’m interested in calling something like (${2--1}).each do |$arg|that, and in the documentation each of the parameters with one line of documentation is indicated.
source
share