Class: HexGenerator
- Inherits:
-
Object
- Object
- HexGenerator
- Defined in:
- lib/hex_code_generator.rb
Class Method Summary collapse
Class Method Details
.new_hex ⇒ Object
5 6 7 |
# File 'lib/hex_code_generator.rb', line 5 def self.new_hex "#".tap { |hex| 6.times { hex << %w(a b c d e f 1 2 3 4 5 6 7 8 9).sample } } end |