We can avoid having to define a local variable and then reference it inside these blocks by passing a proc instead.
OS::Mac::Version
MacOSVersion