class BinData::Struct
def method_missing(symbol, *args, &block)
def method_missing(symbol, *args, &block) name = symbol.id2name is_writer = (name[-1, 1] == "=") name.chomp!("=") # find the object that is responsible for name if (obj = find_obj_for_name(name)) # pass on the request if obj.single_value? and is_writer obj.value = *args elsif obj.single_value? obj.value else obj end else super end end