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/cli.rb,
lib/rbs/collection.rb,
lib/rbs/constant.rb,
lib/rbs/definition.rb,
lib/rbs/definition_builder.rb,
lib/rbs/diff.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/file_finder.rb,
lib/rbs/location_aux.rb,
lib/rbs/locator.rb,
lib/rbs/method_type.rb,
lib/rbs/namespace.rb,
lib/rbs/parser_aux.rb,
lib/rbs/repository.rb,
lib/rbs/sorter.rb,
lib/rbs/substitution.rb,
lib/rbs/subtractor.rb,
lib/rbs/test.rb,
lib/rbs/type_alias_dependency.rb,
lib/rbs/type_alias_regularity.rb,
lib/rbs/type_name.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/annotate/annotations.rb,
lib/rbs/annotate/formatter.rb,
lib/rbs/annotate/rdoc_annotator.rb,
lib/rbs/annotate/rdoc_source.rb,
lib/rbs/ast/annotation.rb,
lib/rbs/ast/comment.rb,
lib/rbs/ast/declarations.rb,
lib/rbs/ast/directives.rb,
lib/rbs/ast/members.rb,
lib/rbs/ast/type_param.rb,
lib/rbs/cli/colored_io.rb,
lib/rbs/cli/diff.rb,
lib/rbs/cli/validate.rb,
lib/rbs/collection/cleaner.rb,
lib/rbs/collection/config.rb,
lib/rbs/collection/installer.rb,
lib/rbs/collection/sources.rb,
lib/rbs/collection/config/lockfile.rb,
lib/rbs/collection/config/lockfile_generator.rb,
lib/rbs/collection/sources/base.rb,
lib/rbs/collection/sources/git.rb,
lib/rbs/collection/sources/local.rb,
lib/rbs/collection/sources/rubygems.rb,
lib/rbs/collection/sources/stdlib.rb,
lib/rbs/definition_builder/ancestor_builder.rb,
lib/rbs/definition_builder/method_builder.rb,
lib/rbs/environment/use_map.rb,
lib/rbs/prototype/helpers.rb,
lib/rbs/prototype/node_usage.rb,
lib/rbs/prototype/rb.rb,
lib/rbs/prototype/rbi.rb,
lib/rbs/prototype/runtime.rb,
lib/rbs/prototype/runtime/helpers.rb,
lib/rbs/prototype/runtime/reflection.rb,
lib/rbs/prototype/runtime/value_object_generator.rb,
lib/rbs/resolver/constant_resolver.rb,
lib/rbs/resolver/type_name_resolver.rb,
lib/rbs/test/errors.rb,
lib/rbs/test/guaranteed.rb,
lib/rbs/test/hook.rb,
lib/rbs/test/observer.rb,
lib/rbs/test/setup_helper.rb,
lib/rbs/test/tester.rb,
lib/rbs/test/type_check.rb,
lib/rbs/unit_test/convertibles.rb,
lib/rbs/unit_test/spy.rb,
lib/rbs/unit_test/type_assertions.rb,
lib/rbs/unit_test/with_aliases.rb,
lib/rdoc_plugin/parser.rb

Constant Summary

Class Attribute Summary

Class Method Summary

Class Attribute Details

.logger_level (rw)

[ GitHub ]

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

attr_reader :logger_level

.logger_level=(level) (rw)

[ GitHub ]

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

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

.logger_output (rw)

[ GitHub ]

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

attr_reader :logger_output

.logger_output=(val) (rw)

[ GitHub ]

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

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

Class Method Details

.logger

[ GitHub ]

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

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