Top Level Namespace
- Includes:
- RBS::Test::SetupHelper
Defined Under Namespace
Modules: 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
Instance Method Details
#match(filter, name) ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'lib/rbs/test/setup.rb', line 39 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 |