title: How do I call a ruby function named []?
body: <p>I am new to Ruby, so please excuse this question if it is obvious.</p>
  <p>I am working with a Module with a function signature that I don't understand.  How would I call this function?</p>
  <pre><code>module Facter
  ...
    def self.[](name)
      collection.fact(name)
    end
  ...
  </code></pre>
  <p>In my code I want to reference something that should be in collection.fact, in this Facter module.  What syntax to I use to call this  function?</p>
  <p>Cheers</p>