Class: RubyNEAT::Cli::Generator::Neater
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- RubyNEAT::Cli::Generator::Neater
- Extended by:
- GenHelpers
- Includes:
- Thor::Actions
- Defined in:
- lib/rubyneat/cli/generate.rb
Instance Attribute Summary collapse
-
#bias ⇒ Object
Returns the value of attribute bias.
-
#description ⇒ Object
Returns the value of attribute description.
-
#hidden ⇒ Object
Returns the value of attribute hidden.
-
#inputs ⇒ Object
Returns the value of attribute inputs.
-
#outputs ⇒ Object
Returns the value of attribute outputs.
Instance Method Summary collapse
Methods included from GenHelpers
Instance Attribute Details
#bias ⇒ Object
Returns the value of attribute bias.
66 67 68 |
# File 'lib/rubyneat/cli/generate.rb', line 66 def bias @bias end |
#description ⇒ Object
Returns the value of attribute description.
66 67 68 |
# File 'lib/rubyneat/cli/generate.rb', line 66 def description @description end |
#hidden ⇒ Object
Returns the value of attribute hidden.
66 67 68 |
# File 'lib/rubyneat/cli/generate.rb', line 66 def hidden @hidden end |
#inputs ⇒ Object
Returns the value of attribute inputs.
66 67 68 |
# File 'lib/rubyneat/cli/generate.rb', line 66 def inputs @inputs end |
#outputs ⇒ Object
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_file ⇒ Object
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 |