module RBS
Constants
- VERSION
Attributes
logger_level[R]
logger_output[R]
Public Class Methods
logger()
click to toggle source
# File rbs-3.4.4/lib/rbs.rb, line 67 def logger @logger ||= Logger.new(logger_output || STDERR, level: logger_level || Logger::WARN, progname: "rbs") end
logger_level=(level)
click to toggle source
# File rbs-3.4.4/lib/rbs.rb, line 76 def logger_level=(level) @logger_level = level @logger = nil end
logger_output=(val)
click to toggle source
# File rbs-3.4.4/lib/rbs.rb, line 71 def logger_output=(val) @logger = nil @logger_output = val end
print_warning() { || ... }
click to toggle source
# File rbs-3.4.4/lib/rbs.rb, line 81 def print_warning() @warnings ||= Set[] message = yield() unless @warnings.include?(message) @warnings << message logger.warn { message } end end