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[prop] = value end attributes.each_pair do |att, value| self[att] = value end if attributes end