如何初始化指南针记录器?
我正在 irb 中尝试指南针,这是我的代码:
C:\Documents and Settings\test>irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'compass'
=> true
irb(main):003:0> logger = Compass::Logger.new()
NameError: uninitialized constant Compass::Logger
from E:/Ruby187/lib/ruby/gems/1.8/gems/compass-0.10.6/lib/compass/versio
n.rb:51:in `const_missing'
from (irb):3
irb(main):004:0>
但是 compass/loggers.rb
中有一个 Logger
类:
module Compass
class Logger
DEFAULT_ACTIONS = [:directory, :exists, ...]
哪里错了?
I'm trying compass in irb, this is my code:
C:\Documents and Settings\test>irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'compass'
=> true
irb(main):003:0> logger = Compass::Logger.new()
NameError: uninitialized constant Compass::Logger
from E:/Ruby187/lib/ruby/gems/1.8/gems/compass-0.10.6/lib/compass/versio
n.rb:51:in `const_missing'
from (irb):3
irb(main):004:0>
But there is a Logger
class in compass/loggers.rb
:
module Compass
class Logger
DEFAULT_ACTIONS = [:directory, :exists, ...]
Where is wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试:
Try: