Class: MimiCheck::Generator::Elements
- Inherits:
-
Object
- Object
- MimiCheck::Generator::Elements
- Includes:
- MimiCheck::Generator
- Defined in:
- lib/mimicheck/generator/elements.rb
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(*elements) ⇒ Elements
constructor
A new instance of Elements.
Methods included from MimiCheck::Generator
Constructor Details
#initialize(*elements) ⇒ Elements
Returns a new instance of Elements.
6 7 8 |
# File 'lib/mimicheck/generator/elements.rb', line 6 def initialize(*elements) @elements = elements end |
Instance Method Details
#generate ⇒ Object
12 13 14 |
# File 'lib/mimicheck/generator/elements.rb', line 12 def generate elements.sample end |