Class: Clash::Config
- Inherits:
-
Object
- Object
- Clash::Config
- Defined in:
- lib/clash-systray/lib/clash/config.rb
Instance Attribute Summary collapse
-
#external_controller ⇒ Object
readonly
Returns the value of attribute external_controller.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#secret ⇒ Object
readonly
Returns the value of attribute secret.
-
#socks_port ⇒ Object
readonly
Returns the value of attribute socks_port.
Class Method Summary collapse
Instance Attribute Details
#external_controller ⇒ Object (readonly)
Returns the value of attribute external_controller.
4 5 6 |
# File 'lib/clash-systray/lib/clash/config.rb', line 4 def external_controller @external_controller end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
3 4 5 |
# File 'lib/clash-systray/lib/clash/config.rb', line 3 def port @port end |
#secret ⇒ Object (readonly)
Returns the value of attribute secret.
4 5 6 |
# File 'lib/clash-systray/lib/clash/config.rb', line 4 def secret @secret end |
#socks_port ⇒ Object (readonly)
Returns the value of attribute socks_port.
3 4 5 |
# File 'lib/clash-systray/lib/clash/config.rb', line 3 def socks_port @socks_port end |
Class Method Details
.load(file) ⇒ Object
6 7 8 |
# File 'lib/clash-systray/lib/clash/config.rb', line 6 def self.load(file) new.tap { |c| c.__send__(:parse, file) } end |