Displaying 1 result from an estimated 1 matches for "attribure_accessor".
2006 May 05
1
class_eval in ROR''s attribure_accessor.rb
hi,
here is a snippet code in ROR''s attribure_accessor.rb. the usage of
class_eval is different with "class_eval(string, <, file, <line>>)"
somewhat,
i don''t understand this usage, who can explain it more detail to me?
def cattr_writer(*syms)
syms.flatten.each do |sym|
class_eval(<<-EOS, __FILE__, __...