Class: Devup::Compose::PortConfig
- Inherits:
-
Object
- Object
- Devup::Compose::PortConfig
- Defined in:
- lib/devup/compose/port_config.rb
Instance Method Summary collapse
- #==(another) ⇒ Object
- #from ⇒ Object
-
#initialize(config) ⇒ PortConfig
constructor
A new instance of PortConfig.
Constructor Details
#initialize(config) ⇒ PortConfig
Returns a new instance of PortConfig.
4 5 6 |
# File 'lib/devup/compose/port_config.rb', line 4 def initialize(config) @config = config end |
Instance Method Details
#==(another) ⇒ Object
12 13 14 |
# File 'lib/devup/compose/port_config.rb', line 12 def ==(another) from == another.from end |
#from ⇒ Object
8 9 10 |
# File 'lib/devup/compose/port_config.rb', line 8 def from @config.split(":")[-1].to_i end |