Module: Tapioca

Defined in:
lib/tapioca/config.rb,
lib/tapioca.rb,
lib/tapioca/cli.rb,
lib/tapioca/loader.rb,
lib/tapioca/gemfile.rb,
lib/tapioca/version.rb,
lib/tapioca/reflection.rb,
lib/tapioca/config_builder.rb,
lib/tapioca/generators/dsl.rb,
lib/tapioca/generators/gem.rb,
lib/tapioca/generators/base.rb,
lib/tapioca/generators/init.rb,
lib/tapioca/generators/todo.rb,
lib/tapioca/compilers/sorbet.rb,
lib/tapioca/constant_locator.rb,
lib/tapioca/compilers/dsl/aasm.rb,
lib/tapioca/compilers/dsl/base.rb,
lib/tapioca/generators/require.rb,
lib/tapioca/compilers/dsl/config.rb,
lib/tapioca/generic_type_registry.rb,
lib/tapioca/compilers/dsl/protobuf.rb,
lib/tapioca/compilers/dsl_compiler.rb,
lib/tapioca/compilers/dsl/active_job.rb,
lib/tapioca/compilers/todos_compiler.rb,
lib/tapioca/compilers/dsl/url_helpers.rb,
lib/tapioca/compilers/dsl/action_mailer.rb,
lib/tapioca/compilers/dsl/frozen_record.rb,
lib/tapioca/compilers/requires_compiler.rb,
lib/tapioca/compilers/dsl/active_storage.rb,
lib/tapioca/compilers/dsl/identity_cache.rb,
lib/tapioca/compilers/dsl/sidekiq_worker.rb,
lib/tapioca/compilers/dsl/state_machines.rb,
lib/tapioca/compilers/dsl/active_resource.rb,
lib/tapioca/sorbet_ext/generic_name_patch.rb,
lib/tapioca/compilers/dsl/smart_properties.rb,
lib/tapioca/compilers/symbol_table_compiler.rb,
lib/tapioca/compilers/dsl/active_record_enum.rb,
lib/tapioca/compilers/dsl/active_record_scope.rb,
lib/tapioca/compilers/dsl/active_record_columns.rb,
lib/tapioca/compilers/dsl/active_record_fixtures.rb,
lib/tapioca/compilers/dsl/active_support_concern.rb,
lib/tapioca/compilers/symbol_table/symbol_loader.rb,
lib/tapioca/compilers/dsl/active_model_attributes.rb,
lib/tapioca/compilers/dsl/action_controller_helpers.rb,
lib/tapioca/compilers/dsl/active_record_typed_store.rb,
lib/tapioca/compilers/dsl/mixed_in_class_attributes.rb,
lib/tapioca/compilers/symbol_table/symbol_generator.rb,
lib/tapioca/compilers/dsl/active_record_associations.rb,
lib/tapioca/compilers/dsl/active_model_secure_password.rb,
lib/tapioca/compilers/dsl/active_support_current_attributes.rb

Overview

typed: strong frozen_string_literal: true

Defined Under Namespace

Modules: Compilers, ConstantLocator, Generators, GenericTypeRegistry, Reflection Classes: Cli, Config, ConfigBuilder, Error, Gemfile, Loader, TypeMember, TypeTemplate

Constant Summary collapse

VERSION =
"0.5.5"

Class Method Summary collapse

Class Method Details

.silence_warnings(&blk) ⇒ Object


7
8
9
10
11
12
13
14
15
# File 'lib/tapioca.rb', line 7

def self.silence_warnings(&blk)
  original_verbosity = $VERBOSE
  $VERBOSE = nil
  Gem::DefaultUserInteraction.use_ui(Gem::SilentUI.new) do
    blk.call
  end
ensure
  $VERBOSE = original_verbosity
end