模块 RBS
常量
- VERSION
属性
logger_level[R]
logger_output[R]
公共类方法
logger() 点击切换源代码
# File rbs-3.8.0/lib/rbs.rb, line 68 def logger @logger ||= Logger.new(logger_output || STDERR, level: logger_level || Logger::WARN, progname: "rbs") end
logger_level=(level) 点击切换源代码
# File rbs-3.8.0/lib/rbs.rb, line 77 def logger_level=(level) @logger_level = level @logger = nil end
logger_output=(val) 点击切换源代码
# File rbs-3.8.0/lib/rbs.rb, line 72 def logger_output=(val) @logger = nil @logger_output = val end
print_warning() { || ... } 点击切换源代码
# File rbs-3.8.0/lib/rbs.rb, line 82 def print_warning() @warnings ||= Set[] message = yield() unless @warnings.include?(message) @warnings << message logger.warn { message } end end