Topic: static block in Ruby?

How can we have a static block of code (like we have it in Java) in Ruby? Is there a such thing in Ruby?