Class: Troo::Configuration
- Inherits:
-
Object
- Object
- Troo::Configuration
- Defined in:
- lib/troo/configuration.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#view ⇒ Object
[].
Class Method Details
.load(file, env) ⇒ Object
Returns [].
21 22 23 |
# File 'lib/troo/configuration.rb', line 21 def load(file, env) new(YAML.load_file(file)[env]) end |
Instance Method Details
#view ⇒ Object
Returns [].
27 28 29 30 31 |
# File 'lib/troo/configuration.rb', line 27 def view attributes.map do |label, value| Preference.view(label: label, value: value) end.join("\n") end |