Top Level Namespace

Defined Under Namespace

Modules: Kernel, RBS, Ruby Classes: Module, Proc

Constant Summary

Constants included from RBS::Test::SetupHelper

RBS::Test::SetupHelper::DEFAULT_SAMPLE_SIZE

Instance Method Summary collapse

Methods included from RBS::Test::SetupHelper

#get_sample_size, #to_double_class

Instance Method Details

#match(filter, name) ⇒ Object



45
46
47
48
49
50
51
52
# File 'lib/rbs/test/setup.rb', line 45

def match(filter, name)
  if filter.end_with?("*")
    size = filter.size
    name.start_with?(filter[0, size - 1]) || name == filter[0, size-3]
  else
    filter == name
  end
end

#to_absolute_typename(type_name) ⇒ Object



54
55
56
# File 'lib/rbs/test/setup.rb', line 54

def to_absolute_typename(type_name)
  RBS::Factory.new().type_name(type_name).absolute!
end