# File lib/active_support/core_ext/module/attr_accessor_with_default.rb, line 21 def attr_accessor_with_default(sym, default = Proc.new) ActiveSupport::Deprecation.warn "attr_accessor_with_default is deprecated. Use Ruby instead!" define_method(sym, block_given? ? default : Proc.new { default }) module_eval("def \#{sym}=(value) # def age=(value)\nclass << self; attr_accessor :\#{sym} end # class << self; attr_accessor :age end\n@\#{sym} = value # @age = value\nend # end\n", __FILE__, __LINE__ + 1) end