123456789_123456789_123456789_123456789_123456789_

Module: RBS

Relationships & Source Files
Namespace Children
Modules:
Classes:
Exceptions:
Defined in: lib/rbs.rb,
lib/rbs/ancestor_graph.rb,
lib/rbs/buffer.rb,
lib/rbs/builtin_names.rb,
lib/rbs/char_scanner.rb,
lib/rbs/cli.rb,
lib/rbs/constant.rb,
lib/rbs/constant_table.rb,
lib/rbs/definition.rb,
lib/rbs/definition_builder.rb,
lib/rbs/environment.rb,
lib/rbs/environment_loader.rb,
lib/rbs/environment_walker.rb,
lib/rbs/errors.rb,
lib/rbs/factory.rb,
lib/rbs/location.rb,
lib/rbs/locator.rb,
lib/rbs/method_type.rb,
lib/rbs/namespace.rb,
lib/rbs/parser.rb,
lib/rbs/repository.rb,
lib/rbs/substitution.rb,
lib/rbs/test.rb,
lib/rbs/type_alias_dependency.rb,
lib/rbs/type_name.rb,
lib/rbs/type_name_resolver.rb,
lib/rbs/types.rb,
lib/rbs/validator.rb,
lib/rbs/variance_calculator.rb,
lib/rbs/vendorer.rb,
lib/rbs/version.rb,
lib/rbs/writer.rb,
lib/rbs/ast/annotation.rb,
lib/rbs/ast/comment.rb,
lib/rbs/ast/declarations.rb,
lib/rbs/ast/members.rb,
lib/rbs/definition_builder/ancestor_builder.rb,
lib/rbs/definition_builder/method_builder.rb,
lib/rbs/prototype/rb.rb,
lib/rbs/prototype/rbi.rb,
lib/rbs/prototype/runtime.rb,
lib/rbs/test/errors.rb,
lib/rbs/test/hook.rb,
lib/rbs/test/observer.rb,
lib/rbs/test/setup_helper.rb,
lib/rbs/test/spy.rb,
lib/rbs/test/tester.rb,
lib/rbs/test/type_check.rb

Constant Summary

Class Attribute Summary

Class Method Summary

Class Attribute Details

.logger_level (rw)

[ GitHub ]

  
# File 'lib/rbs.rb', line 58

attr_reader :logger_level

.logger_level=(level) (rw)

[ GitHub ]

  
# File 'lib/rbs.rb', line 70

def logger_level=(level)
  @logger_level = level
  @logger = nil
end

.logger_output (rw)

[ GitHub ]

  
# File 'lib/rbs.rb', line 59

attr_reader :logger_output

.logger_output=(val) (rw)

[ GitHub ]

  
# File 'lib/rbs.rb', line 65

def logger_output=(val)
  @logger_output = val
  @logger = nil
end

Class Method Details

.logger

[ GitHub ]

  
# File 'lib/rbs.rb', line 61

def logger
  @logger ||= Logger.new(logger_output || STDERR, level: logger_level || "warn", progname: "rbs")
end