title: How to explicitly reference core classes in Ruby?
body: <p>I'm working with Chef, and I have run into a situation where I need to use the Ruby <code>File.dirname()</code> class method. Problem is, Chef has it's own <code>Chef::Resource::File</code> class which is resolved when executing code within a <code>ruby_block</code> resource. How can one explicitly reference the core namespace File class when there is a naming conflict?</p>