In Files

  • rbs-2.1.0/lib/rbs.rb
  • rbs-2.1.0/lib/rbs/ancestor_graph.rb
  • rbs-2.1.0/lib/rbs/annotate/annotations.rb
  • rbs-2.1.0/lib/rbs/annotate/formatter.rb
  • rbs-2.1.0/lib/rbs/annotate/rdoc_annotator.rb
  • rbs-2.1.0/lib/rbs/annotate/rdoc_source.rb
  • rbs-2.1.0/lib/rbs/ast/annotation.rb
  • rbs-2.1.0/lib/rbs/ast/comment.rb
  • rbs-2.1.0/lib/rbs/ast/declarations.rb
  • rbs-2.1.0/lib/rbs/ast/members.rb
  • rbs-2.1.0/lib/rbs/ast/type_param.rb
  • rbs-2.1.0/lib/rbs/buffer.rb
  • rbs-2.1.0/lib/rbs/builtin_names.rb
  • rbs-2.1.0/lib/rbs/char_scanner.rb
  • rbs-2.1.0/lib/rbs/cli.rb
  • rbs-2.1.0/lib/rbs/collection.rb
  • rbs-2.1.0/lib/rbs/collection/cleaner.rb
  • rbs-2.1.0/lib/rbs/collection/config.rb
  • rbs-2.1.0/lib/rbs/collection/config/lockfile_generator.rb
  • rbs-2.1.0/lib/rbs/collection/installer.rb
  • rbs-2.1.0/lib/rbs/collection/sources.rb
  • rbs-2.1.0/lib/rbs/collection/sources/git.rb
  • rbs-2.1.0/lib/rbs/collection/sources/rubygems.rb
  • rbs-2.1.0/lib/rbs/collection/sources/stdlib.rb
  • rbs-2.1.0/lib/rbs/constant.rb
  • rbs-2.1.0/lib/rbs/constant_table.rb
  • rbs-2.1.0/lib/rbs/definition.rb
  • rbs-2.1.0/lib/rbs/definition_builder.rb
  • rbs-2.1.0/lib/rbs/definition_builder/ancestor_builder.rb
  • rbs-2.1.0/lib/rbs/definition_builder/method_builder.rb
  • rbs-2.1.0/lib/rbs/environment.rb
  • rbs-2.1.0/lib/rbs/environment_loader.rb
  • rbs-2.1.0/lib/rbs/environment_walker.rb
  • rbs-2.1.0/lib/rbs/errors.rb
  • rbs-2.1.0/lib/rbs/factory.rb
  • rbs-2.1.0/lib/rbs/location_aux.rb
  • rbs-2.1.0/lib/rbs/locator.rb
  • rbs-2.1.0/lib/rbs/method_type.rb
  • rbs-2.1.0/lib/rbs/namespace.rb
  • rbs-2.1.0/lib/rbs/parser_aux.rb
  • rbs-2.1.0/lib/rbs/parser_compat/lexer_error.rb
  • rbs-2.1.0/lib/rbs/parser_compat/located_value.rb
  • rbs-2.1.0/lib/rbs/parser_compat/semantics_error.rb
  • rbs-2.1.0/lib/rbs/parser_compat/syntax_error.rb
  • rbs-2.1.0/lib/rbs/prototype/helpers.rb
  • rbs-2.1.0/lib/rbs/prototype/rb.rb
  • rbs-2.1.0/lib/rbs/prototype/rbi.rb
  • rbs-2.1.0/lib/rbs/prototype/runtime.rb
  • rbs-2.1.0/lib/rbs/repository.rb
  • rbs-2.1.0/lib/rbs/substitution.rb
  • rbs-2.1.0/lib/rbs/test.rb
  • rbs-2.1.0/lib/rbs/type_alias_dependency.rb
  • rbs-2.1.0/lib/rbs/type_alias_regularity.rb
  • rbs-2.1.0/lib/rbs/type_name.rb
  • rbs-2.1.0/lib/rbs/type_name_resolver.rb
  • rbs-2.1.0/lib/rbs/types.rb
  • rbs-2.1.0/lib/rbs/validator.rb
  • rbs-2.1.0/lib/rbs/variance_calculator.rb
  • rbs-2.1.0/lib/rbs/vendorer.rb
  • rbs-2.1.0/lib/rbs/version.rb
  • rbs-2.1.0/lib/rbs/writer.rb

Namespace

Class/Module Index [+]

Quicksearch

RBS

Constants

VERSION

Attributes

logger_level[R]
logger_output[R]

Public Class Methods

logger() click to toggle source
 
               # File rbs-2.1.0/lib/rbs.rb, line 61
def logger
  @logger ||= Logger.new(logger_output || STDERR, level: logger_level || "warn", progname: "rbs")
end
            
logger_level=(level) click to toggle source
 
               # File rbs-2.1.0/lib/rbs.rb, line 70
def logger_level=(level)
  @logger_level = level
  @logger = nil
end
            
logger_output=(val) click to toggle source
 
               # File rbs-2.1.0/lib/rbs.rb, line 65
def logger_output=(val)
  @logger_output = val
  @logger = nil
end
            
to_string(location, default: "*:*:*...*:*") click to toggle source
 
               # File rbs-2.1.0/lib/rbs/location_aux.rb, line 91
def self.to_string(location, default: "*:*:*...*:*")
  location&.to_s || default
end
            

Public Instance Methods

add_optional_child(name, range) click to toggle source
 
               # File rbs-2.1.0/lib/rbs/location_aux.rb, line 99
def add_optional_child(name, range)
  if range
    _add_optional_child(name, range.begin, range.end)
  else
    _add_optional_no_child(name);
  end
end
            
add_required_child(name, range) click to toggle source
 
               # File rbs-2.1.0/lib/rbs/location_aux.rb, line 95
def add_required_child(name, range)
  _add_required_child(name, range.begin, range.end)
end
            
each_optional_key(&block) click to toggle source
 
               # File rbs-2.1.0/lib/rbs/location_aux.rb, line 107
def each_optional_key(&block)
  if block
    _optional_keys.uniq.each(&block)
  else
    enum_for(:each_optional_key)
  end
end
            
each_required_key(&block) click to toggle source
 
               # File rbs-2.1.0/lib/rbs/location_aux.rb, line 115
def each_required_key(&block)
  if block
    _required_keys.uniq.each(&block)
  else
    enum_for(:each_required_key)
  end
end
            
key?(name) click to toggle source
 
               # File rbs-2.1.0/lib/rbs/location_aux.rb, line 123
def key?(name)
  optional_key?(name) || required_key?(name)
end
            
optional_key?(name) click to toggle source
 
               # File rbs-2.1.0/lib/rbs/location_aux.rb, line 127
def optional_key?(name)
  _optional_keys.include?(name)
end
            
required_key?(name) click to toggle source
 
               # File rbs-2.1.0/lib/rbs/location_aux.rb, line 131
def required_key?(name)
  _required_keys.include?(name)
end