Class: MimiCheck::Generator::Elements

Inherits:
Object
  • Object
show all
Includes:
MimiCheck::Generator
Defined in:
lib/mimicheck/generator/elements.rb

Instance Method Summary collapse

Methods included from MimiCheck::Generator

#call, #to_proc

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

#generateObject



12
13
14
# File 'lib/mimicheck/generator/elements.rb', line 12

def generate
  elements.sample
end