Class: RubyNEAT::Cli::Generator::Neater

Inherits:
Thor::Group
  • Object
show all
Extended by:
GenHelpers
Includes:
Thor::Actions
Defined in:
lib/rubyneat/cli/generate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from GenHelpers

source_root

Instance Attribute Details

#biasObject

Returns the value of attribute bias.



66
67
68
# File 'lib/rubyneat/cli/generate.rb', line 66

def bias
  @bias
end

#descriptionObject

Returns the value of attribute description.



66
67
68
# File 'lib/rubyneat/cli/generate.rb', line 66

def description
  @description
end

#hiddenObject

Returns the value of attribute hidden.



66
67
68
# File 'lib/rubyneat/cli/generate.rb', line 66

def hidden
  @hidden
end

#inputsObject

Returns the value of attribute inputs.



66
67
68
# File 'lib/rubyneat/cli/generate.rb', line 66

def inputs
  @inputs
end

#outputsObject

Returns the value of attribute outputs.



66
67
68
# File 'lib/rubyneat/cli/generate.rb', line 66

def outputs
  @outputs
end

Instance Method Details

#create_neater_fileObject



68
69
70
71
72
# File 'lib/rubyneat/cli/generate.rb', line 68

def create_neater_file
  setup_neuron_parameters
  @description ||= "#{name.camel_case} Neater"
  template 'neater', "neater/#{name.snake}_neat.rb"
end