Module: TreeTerminalMutator

Defined in:
lib/charlie/tree/tree.rb

Overview

replaces a random terminal by a new one.

Instance Method Summary collapse

Instance Method Details

#mutate!Object



248
249
250
251
# File 'lib/charlie/tree/tree.rb', line 248

def mutate!
  random_terminal.replace generate_random_tree(0)
  self
end