Class: NvimConf::Managers::CompilerConfigurations
- Inherits:
-
Object
- Object
- NvimConf::Managers::CompilerConfigurations
- Defined in:
- lib/nvim_conf/managers/compiler_configurations.rb
Instance Attribute Summary collapse
-
#configurations ⇒ Object
readonly
Returns the value of attribute configurations.
Instance Method Summary collapse
- #code_output(language) ⇒ Object
- #commented(acceptance = true) ⇒ Object
- #documented(formats) ⇒ Object
-
#initialize ⇒ CompilerConfigurations
constructor
A new instance of CompilerConfigurations.
- #mono_file(acceptance = true) ⇒ Object
- #output_folder(path) ⇒ Object
- #store? ⇒ Boolean
- #write(acceptance = true) ⇒ Object
Constructor Details
#initialize ⇒ CompilerConfigurations
Returns a new instance of CompilerConfigurations.
8 9 10 |
# File 'lib/nvim_conf/managers/compiler_configurations.rb', line 8 def initialize @configurations = [] end |
Instance Attribute Details
#configurations ⇒ Object (readonly)
Returns the value of attribute configurations.
6 7 8 |
# File 'lib/nvim_conf/managers/compiler_configurations.rb', line 6 def configurations @configurations end |
Instance Method Details
#code_output(language) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/nvim_conf/managers/compiler_configurations.rb', line 30 def code_output(language) store_configuration( :code_output, language.to_s ) end |
#commented(acceptance = true) ⇒ Object
51 52 53 54 55 56 |
# File 'lib/nvim_conf/managers/compiler_configurations.rb', line 51 def commented(acceptance = true) store_configuration( :commented, acceptance ) end |
#documented(formats) ⇒ Object
44 45 46 47 48 49 |
# File 'lib/nvim_conf/managers/compiler_configurations.rb', line 44 def documented(formats) store_configuration( :documented, formats ) end |
#mono_file(acceptance = true) ⇒ Object
37 38 39 40 41 42 |
# File 'lib/nvim_conf/managers/compiler_configurations.rb', line 37 def mono_file(acceptance = true) store_configuration( :mono_file, acceptance ) end |
#output_folder(path) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/nvim_conf/managers/compiler_configurations.rb', line 16 def output_folder(path) store_configuration( :output_folder, path ) end |
#store? ⇒ Boolean
12 13 14 |
# File 'lib/nvim_conf/managers/compiler_configurations.rb', line 12 def store? @configurations.any? end |
#write(acceptance = true) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/nvim_conf/managers/compiler_configurations.rb', line 23 def write(acceptance = true) store_configuration( :write, acceptance ) end |