0

次のコードでは、次のようなエラーが発生して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間違って使用していますか?

4

1 に答える 1