# File lib/packet/packet_helper.rb, line 27 def inheritable_attribute *options_args option_hash = options_args.last args = options_args[0..-2] args.each {|attr| instance_variable_set("@#{attr}""@#{attr}",option_hash[:default] || nil )} metaclass.instance_eval { attr_accessor *args } args.each do |attr| class_eval do define_method(attr) do self.class.send(attr) end define_method("#{attr}=") do |b_value| self.class.send("#{attr}=",b_value) end end end end