Class: Phut::Syntax::VhostDirective::UnusedIpAddress
- Inherits:
-
Object
- Object
- Phut::Syntax::VhostDirective::UnusedIpAddress
- Defined in:
- lib/phut/syntax.rb
Overview
Generates an unused IP address
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize ⇒ UnusedIpAddress
constructor
A new instance of UnusedIpAddress.
Constructor Details
#initialize ⇒ UnusedIpAddress
Returns a new instance of UnusedIpAddress.
38 39 40 |
# File 'lib/phut/syntax.rb', line 38 def initialize @index = 0 end |
Instance Method Details
#generate ⇒ Object
42 43 44 45 |
# File 'lib/phut/syntax.rb', line 42 def generate @index += 1 "192.168.0.#{@index}" end |