Class: Mayaml::MuttConfigsDefaultAccount::Handler
- Inherits:
-
Object
- Object
- Mayaml::MuttConfigsDefaultAccount::Handler
- Includes:
- Mainapp::Component
- Defined in:
- lib/mayaml/mutt_configs_default_account/handler.rb
Instance Method Summary collapse
Instance Method Details
#execute(data, prefix_path) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/mayaml/mutt_configs_default_account/handler.rb', line 11 def execute(data, prefix_path) account_data = default_account(data) || first_account(data) return [] unless account_data src = link_path(prefix_path) dest = build_path(prefix_path, account_data) [{src => dest}] end |