Class: Thunderbird::Profiles
- Inherits:
-
Object
- Object
- Thunderbird::Profiles
- Defined in:
- lib/thunderbird/profiles.rb
Overview
Instance Method Summary collapse
Instance Method Details
#installs ⇒ Object
19 20 21 22 23 24 |
# File 'lib/thunderbird/profiles.rb', line 19 def installs @installs ||= begin pairs = blocks.filter { |name, _entries| name.start_with?("Install") } pairs.map { |title, entries| Thunderbird::Install.new(title, entries) } end end |
#profile(name) ⇒ Object
13 14 15 16 17 |
# File 'lib/thunderbird/profiles.rb', line 13 def profile(name) title, entries = blocks.find { |_name, entries| entries[:Name] == name } Thunderbird::Profile.new(title, entries) if title end |
#profile_for_path(path) ⇒ Object
7 8 9 10 11 |
# File 'lib/thunderbird/profiles.rb', line 7 def profile_for_path(path) title, entries = blocks.find { |_name, entries| entries[:Path] == path } Thunderbird::Profile.new(title, entries) if title end |