Module: Systray::Helpers

Defined in:
lib/clash-systray/app/views/systray/helpers.rb

Class Method Summary collapse

Class Method Details

.extract_proxy_name(str) ⇒ Object



3
4
5
# File 'lib/clash-systray/app/views/systray/helpers.rb', line 3

def self.extract_proxy_name(str)
  str.to_s.split(" | ")[0].strip
end

.inject_proxy_name(*arr) ⇒ Object



7
8
9
# File 'lib/clash-systray/app/views/systray/helpers.rb', line 7

def self.inject_proxy_name(*arr)
  arr.join(" | ")
end