Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/crokus/cfg_random_gen.rb
Instance Method Summary collapse
Instance Method Details
#sample ⇒ Object
7 8 9 10 |
# File 'lib/crokus/cfg_random_gen.rb', line 7 def sample k=keys.sample [k,self[k]] end |