class Hashie::Dash
def initialize(attributes = {}, &block)
You may initialize a Dash with an attributes hash
def initialize(attributes = {}, &block) super(&block) self.class.defaults.each_pair do |prop, value| self.send("#{prop}=", value) end attributes.each_pair do |att, value| self.send("#{att}=", value) end if attributes end