在下面的代码中,我遇到了一个错误,syntax error, unexpected '\n', expecting :: or '[' or '.' (SyntaxError)
但我看不出问题出在哪里。
module Xaaron
class ApiKey.class_eval # It does not like this....
include Promiscuous::Publisher
publish :xaaron_users_id, :api_key, :as => :ApiKey
end
end
我用class_eval
错了吗?