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/parser.rb,
lib/rbs/writer.rb,
lib/rbs/version.rb,
lib/rbs/constant.rb,
lib/rbs/location.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/definition.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/prototype/rb.rb,
lib/rbs/substitution.rb,
lib/rbs/builtin_names.rb,
lib/rbs/prototype/rbi.rb,
lib/rbs/ast/annotation.rb,
lib/rbs/constant_table.rb,
lib/rbs/test/type_check.rb,
lib/rbs/ast/declarations.rb,
lib/rbs/test/test_helper.rb,
lib/rbs/prototype/runtime.rb,
lib/rbs/definition_builder.rb,
lib/rbs/environment_loader.rb,
lib/rbs/environment_walker.rb,
lib/rbs/variance_calculator.rb

Defined Under Namespace

Modules: AST, BuiltinNames, Prototype, Test, Types Classes: Buffer, CLI, Constant, ConstantTable, Definition, DefinitionBuilder, DuplicatedDeclarationError, DuplicatedMethodDefinitionError, Environment, EnvironmentLoader, EnvironmentWalker, InvalidExtensionParameterError, InvalidTypeApplicationError, InvalidVarianceAnnotationError, Location, MethodType, Namespace, NoTypeFoundError, Parser, RecursiveAncestorError, Substitution, TypeName, UnknownMethodAliasError, VarianceCalculator, Vendorer, Writer

Constant Summary collapse

VERSION =
"0.4.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.logger_levelObject

Returns the value of attribute logger_level.



47
48
49
# File 'lib/rbs.rb', line 47

def logger_level
  @logger_level
end

.logger_outputObject

Returns the value of attribute logger_output.



48
49
50
# File 'lib/rbs.rb', line 48

def logger_output
  @logger_output
end

Class Method Details

.loggerObject



50
51
52
# File 'lib/rbs.rb', line 50

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