title: I need data in a class - how can I get that data without creating a new class?
body: <p>lets say I have a class like so.</p>
  
  <pre><code>var foodData = Class.create({
  initialize: function() {
      this.foodType = {
          "grains" : {
              "item1" : "20",
              "item2" : "60"                   
          },             
           "liquod" : {
              "item1" : "30",
              "item2" : "90"                   
          },
  _someMethod: function(){
  
  }
  
  });
  </code></pre>
  
  <p>In reality, the class is rather large with alot of methods. I ONLY want to access the data in the hash "foodtype". Is there a way I can go in and get that without creating a new class and reading in that way.. ala</p>
  
  <pre><code>var newSomething = new foodData;
      newSomething.foodType;
  </code></pre>