Class: Nginx::Puma::SocketFileName
- Inherits:
-
Object
- Object
- Nginx::Puma::SocketFileName
- Defined in:
- lib/nginx/puma.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ SocketFileName
constructor
A new instance of SocketFileName.
- #to_nginx ⇒ Object
- #to_puma ⇒ Object
- #to_s ⇒ Object
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_nginx ⇒ Object
15 16 17 |
# File 'lib/nginx/puma.rb', line 15 def to_nginx "unix:#{@path}" end |
#to_puma ⇒ Object
18 19 20 |
# File 'lib/nginx/puma.rb', line 18 def to_puma "unix://#{@path}" end |
#to_s ⇒ Object
12 13 14 |
# File 'lib/nginx/puma.rb', line 12 def to_s path end |