Sha256: 72d41fdbf45d3815d71b7d57c8c6a6dff9b43579c1bbfa5bf9b3e965781ab70a

Contents?: true

Size: 298 Bytes

Versions: 4

Compression:

Stored size: 298 Bytes

Contents

# frozen_string_literal: true

require 'tempfile'
require 'fusuma/config.rb'

module Fusuma
  module ConfigHelper
    module_function

    def load_config_yml=(string)
      Config.custom_path = Tempfile.open do |temp_file|
        temp_file.tap { |f| f.write(string) }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
fusuma-plugin-tap-0.4.2 spec/helpers/config_helper.rb
fusuma-plugin-sendkey-0.6.1 spec/helpers/config_helper.rb
fusuma-plugin-wmctrl-0.4.1 spec/helpers/config_helper.rb
fusuma-plugin-tap-0.4.1 spec/helpers/config_helper.rb