Module: String::Characters
- Defined in:
- lib/propr/random/string.rb
Constant Summary collapse
- ASCII =
(0..127).inject("", &:<<)
- ALL =
(0..255).inject("", &:<<)
- CLASSES =
Hash.new
Class Method Summary collapse
Class Method Details
permalink .of(regexp, set = Characters::ALL) ⇒ Object
[View source]
6 7 8 |
# File 'lib/propr/random/string.rb', line 6 def self.of(regexp, set = Characters::ALL) CLASSES[regexp] || set.scan(regexp) end |