Class: Nginx::Puma::SocketFileName

Inherits:
Object
  • Object
show all
Defined in:
lib/nginx/puma.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ SocketFileName

Returns a new instance of SocketFileName.



9
10
11
# File 'lib/nginx/puma.rb', line 9

def initialize path
  @path = path
end

Instance Method Details

#to_nginxObject



15
16
17
# File 'lib/nginx/puma.rb', line 15

def to_nginx
  "unix:#{@path}"
end

#to_pumaObject



18
19
20
# File 'lib/nginx/puma.rb', line 18

def to_puma
  "unix://#{@path}"
end

#to_sObject



12
13
14
# File 'lib/nginx/puma.rb', line 12

def to_s
  path
end