[HashParam::defaults
von@fugal.net**20080401212736
 allows you to set defaults using a hash
] {
hunk ./hashparam.rb 11
-  def self.defaults
-    @defaults ||= {}
+  def self.defs
+    @defs ||= {}
+  end
+  def self.defaults h
+    defs.merge! h
hunk ./hashparam.rb 18
-    defaults[key] = value
+    defs[key] = value
hunk ./hashparam.rb 22
-    merge! self.class.defaults
+    merge! self.class.defs
}
