Class: Indocker::DockerDirectives::Base
- Inherits:
-
Indocker::Directives::Base
- Object
- Indocker::Directives::Base
- Indocker::DockerDirectives::Base
- Defined in:
- lib/indocker/directives/docker_directives/base.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Base
constructor
A new instance of Base.
- #to_s ⇒ Object
Methods inherited from Indocker::Directives::Base
#build_directive?, #container_directive?, #partial?, #prepare_directive?
Constructor Details
#initialize(*args) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/indocker/directives/docker_directives/base.rb', line 6 def initialize(*args) @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
4 5 6 |
# File 'lib/indocker/directives/docker_directives/base.rb', line 4 def args @args end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/indocker/directives/docker_directives/base.rb', line 10 def to_s "#{type} #{@args.join(' ')}" end |