Class: Foobara::Generators::RemoteImportsGenerator::RemoteImportsConfig
- Inherits:
-
Model
- Object
- Model
- Foobara::Generators::RemoteImportsGenerator::RemoteImportsConfig
- Defined in:
- foobara-remote-imports-generator-0.0.3/src/remote_imports_config.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
Methods inherited from Model
#==, abstract, abstract?, attribute_names, #attributes, #attributes_with_delegates, #cast_attribute, #cast_attribute!, closest_namespace_module, description, domain, domain_name, #eql?, foobara_model_name, foobara_name, full_model_name, #hash, #initialize, install!, organization_name, possible_errors, #read_attribute, #read_attribute!, reset_all, subclass, #to_h, #to_json, #valid?, valid_attribute_name?, #validate!, validate_attribute_name!, #validation_errors, #write_attribute, #write_attribute!, #write_attributes, #write_attributes!
Methods included from Concern
foobara_class_methods_module_for, foobara_concern?, included
Constructor Details
This class inherits a constructor from Foobara::Model
Instance Method Details
#to_import_list ⇒ Object
12 13 14 15 16 17 18 |
# File 'foobara-remote-imports-generator-0.0.3/src/remote_imports_config.rb', line 12 def to_import_list if commands && !commands.empty? commands_ruby = commands.map { |command| "\"#{command}\"" }.join(", ") ",\nto_import: [#{commands_ruby}]" end end |