Class: Unicode::Data::Validate::Mode::Sample

Inherits:
Object
  • Object
show all
Defined in:
lib/unicode/data/validate.rb

Overview

Test a sample of 50 random values from the range of characters

Instance Method Summary collapse

Instance Method Details

#apply(values, &block) ⇒ Object



18
19
20
# File 'lib/unicode/data/validate.rb', line 18

def apply(values, &block)
  values.to_a.sample(50).each(&block)
end