Class: Dort::Container::Expose
- Inherits:
-
Object
- Object
- Dort::Container::Expose
- Defined in:
- lib/dort.rb
Instance Attribute Summary collapse
-
#ports ⇒ Object
readonly
Returns the value of attribute ports.
Instance Method Summary collapse
-
#initialize(exposed_ports) ⇒ Expose
constructor
A new instance of Expose.
- #to_s ⇒ Object
Constructor Details
#initialize(exposed_ports) ⇒ Expose
Returns a new instance of Expose.
32 33 34 |
# File 'lib/dort.rb', line 32 def initialize(exposed_ports) @ports = exposed_ports.map{|port,_|port} end |
Instance Attribute Details
#ports ⇒ Object (readonly)
Returns the value of attribute ports.
31 32 33 |
# File 'lib/dort.rb', line 31 def ports @ports end |
Instance Method Details
#to_s ⇒ Object
36 37 38 |
# File 'lib/dort.rb', line 36 def to_s ports.join(", ") end |