Is it possible to call the method from the ruby_block but defined in the same recipe?

I have some recipe where part of methods are definded in the same recipe file what ruby_block where I have to call them. I know I can place method in the library but is it neccessary?