Module: RBS
- Defined in:
- lib/rbs.rb,
lib/rbs/cli.rb,
lib/rbs/test.rb,
lib/rbs/types.rb,
lib/rbs/buffer.rb,
lib/rbs/errors.rb,
lib/rbs/sorter.rb,
lib/rbs/writer.rb,
lib/rbs/factory.rb,
lib/rbs/locator.rb,
lib/rbs/version.rb,
lib/rbs/constant.rb,
lib/rbs/test/spy.rb,
lib/rbs/vendorer.rb,
lib/rbs/namespace.rb,
lib/rbs/test/hook.rb,
lib/rbs/type_name.rb,
lib/rbs/validator.rb,
lib/rbs/collection.rb,
lib/rbs/definition.rb,
lib/rbs/parser_aux.rb,
lib/rbs/repository.rb,
lib/rbs/ast/comment.rb,
lib/rbs/ast/members.rb,
lib/rbs/environment.rb,
lib/rbs/method_type.rb,
lib/rbs/test/errors.rb,
lib/rbs/test/tester.rb,
lib/rbs/location_aux.rb,
lib/rbs/prototype/rb.rb,
lib/rbs/substitution.rb,
lib/rbs/builtin_names.rb,
lib/rbs/prototype/rbi.rb,
lib/rbs/test/observer.rb,
lib/rbs/ancestor_graph.rb,
lib/rbs/ast/annotation.rb,
lib/rbs/ast/directives.rb,
lib/rbs/ast/type_param.rb,
lib/rdoc_plugin/parser.rb,
lib/rbs/test/type_check.rb,
lib/rbs/ast/declarations.rb,
lib/rbs/collection/config.rb,
lib/rbs/prototype/helpers.rb,
lib/rbs/prototype/runtime.rb,
lib/rbs/test/setup_helper.rb,
lib/rbs/annotate/formatter.rb,
lib/rbs/collection/cleaner.rb,
lib/rbs/collection/sources.rb,
lib/rbs/definition_builder.rb,
lib/rbs/environment_loader.rb,
lib/rbs/environment_walker.rb,
lib/rbs/environment/use_map.rb,
lib/rbs/variance_calculator.rb,
lib/rbs/annotate/annotations.rb,
lib/rbs/annotate/rdoc_source.rb,
lib/rbs/collection/installer.rb,
lib/rbs/prototype/node_usage.rb,
lib/rbs/type_alias_dependency.rb,
lib/rbs/type_alias_regularity.rb,
lib/rbs/collection/sources/git.rb,
lib/rbs/annotate/rdoc_annotator.rb,
lib/rbs/collection/sources/base.rb,
lib/rbs/collection/sources/local.rb,
lib/rbs/collection/sources/stdlib.rb,
lib/rbs/collection/config/lockfile.rb,
lib/rbs/resolver/constant_resolver.rb,
lib/rbs/collection/sources/rubygems.rb,
lib/rbs/resolver/type_name_resolver.rb,
lib/rbs/definition_builder/method_builder.rb,
lib/rbs/definition_builder/ancestor_builder.rb,
lib/rbs/collection/config/lockfile_generator.rb
Defined Under Namespace
Modules: AST, Annotate, BuiltinNames, Collection, DetailedMessageable, MethodNameHelper, Prototype, RDocPlugin, Resolver, Test, Types Classes: AncestorGraph, BaseError, Buffer, CLI, Constant, CyclicClassAliasDefinitionError, CyclicTypeParameterBound, Definition, DefinitionBuilder, DefinitionError, DuplicatedDeclarationError, DuplicatedInterfaceMethodDefinitionError, DuplicatedMethodDefinitionError, Environment, EnvironmentLoader, EnvironmentWalker, Factory, GenericParameterMismatchError, InconsistentClassModuleAliasError, InheritModuleError, InvalidOverloadMethodError, InvalidTypeApplicationError, InvalidVarianceAnnotationError, LoadingError, Location, Locator, MethodType, MixinClassError, Namespace, NoMixinFoundError, NoSelfTypeFoundError, NoSuperclassFoundError, NoTypeFoundError, NonregularTypeAliasError, Parser, ParsingError, RecursiveAliasDefinitionError, RecursiveAncestorError, RecursiveTypeAliasError, Repository, Sorter, Substitution, SuperclassMismatchError, TypeAliasDependency, TypeAliasRegularity, TypeName, UnknownMethodAliasError, Validator, VarianceCalculator, Vendorer, Writer
Constant Summary collapse
- VERSION =
"3.0.1"
Class Attribute Summary collapse
-
.logger_level ⇒ Object
Returns the value of attribute logger_level.
-
.logger_output ⇒ Object
Returns the value of attribute logger_output.
Class Method Summary collapse
Class Attribute Details
.logger_level ⇒ Object
Returns the value of attribute logger_level.
61 62 63 |
# File 'lib/rbs.rb', line 61 def logger_level @logger_level end |
.logger_output ⇒ Object
Returns the value of attribute logger_output.
62 63 64 |
# File 'lib/rbs.rb', line 62 def logger_output @logger_output end |
Class Method Details
.logger ⇒ Object
64 65 66 |
# File 'lib/rbs.rb', line 64 def logger @logger ||= Logger.new(logger_output || STDERR, level: logger_level || Logger::WARN, progname: "rbs") end |
.print_warning ⇒ Object
78 79 80 81 82 83 84 85 86 87 |
# File 'lib/rbs.rb', line 78 def print_warning() @warnings ||= Set[] = yield() unless @warnings.include?() @warnings << logger.warn { } end end |