2 updates.
[chise/kage.git] / buhin.js
1 function Buhin(number){\r
2   // method\r
3   function set(name, data){ // void\r
4     this.hash[name] = data;\r
5   }\r
6   Buhin.prototype.push = set;\r
7   Buhin.prototype.set = set;\r
8   \r
9   function search(name){ // string\r
10     if(this.hash[name]){\r
11       return this.hash[name];\r
12     }\r
13     return ""; // no data\r
14   }\r
15   Buhin.prototype.search = search;\r
16   \r
17   // property\r
18   this.hash = {};\r
19   \r
20   // initialize\r
21   // no operation\r
22   \r
23   return this;\r
24 }\r