class Hashie::Extensions::Mash::DefineAccessors::Ext
def define_writer(key, method_name)
def define_writer(key, method_name) define_method(method_name) do |value = nil| if key? method_name self.[](method_name, &proc) else assign_property(key, value) end end end